Skip to content

Commit

Permalink
linting code base
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Dec 27, 2023
1 parent 8796ec0 commit dfc0d89
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 572 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function_parameter_count: 8
identifier_name:
excluded:
- id
- ok
excluded:
- Tests
- DerivedData
Expand Down
Empty file modified Scripts/generate.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions Sources/IPSWDownloads/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public struct Client: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
Operations.devices.Output.Ok.Body.jsonPayload.self,
[OpenAPIRuntime.OpenAPIValueContainer].self,
from: responseBody,
transforming: { value in
.json(value)
Expand Down Expand Up @@ -610,7 +610,7 @@ public struct Client: APIProtocol {
switch chosenContentType {
case "application/json":
body = try await converter.getResponseBodyAsJSON(
Operations.ipswListForVersion.Output.Ok.Body.jsonPayload.self,
[OpenAPIRuntime.OpenAPIValueContainer].self,
from: responseBody,
transforming: { value in
.json(value)
Expand Down
Loading

0 comments on commit dfc0d89

Please sign in to comment.