Skip to content

Commit de7eb0b

Browse files
fixup: soundness format
1 parent b99b13c commit de7eb0b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

IntegrationTest/Package.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ let package = Package(
5353
),
5454
// Targets to integration test the command plugin
5555
.target(name: "Empty"),
56-
.target(
57-
name: "TypesAOT",
58-
dependencies: [.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")]
59-
),
56+
.target(name: "TypesAOT", dependencies: [.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")]),
6057
.target(
6158
name: "TypesAOTWithDependency",
6259
dependencies: ["Empty", .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")]

Plugins/OpenAPIGeneratorCommand/plugin.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ extension SwiftOpenAPIGeneratorPlugin: CommandPlugin {
8181
log("- ✅ OpenAPI code generation for target '\(target.name)' successfully completed.")
8282
hadASuccessfulRun = true
8383
} catch let error as PluginError {
84-
if case .fileErrors(let errors) = error,
85-
Set(errors.map(\.fileKind)) == Set(FileError.Kind.allCases),
84+
if case .fileErrors(let errors) = error, Set(errors.map(\.fileKind)) == Set(FileError.Kind.allCases),
8685
errors.map(\.issue).allSatisfy({ $0 == FileError.Issue.noFilesFound })
8786
{
8887
// The error is that neither of the required files are present for code generation for this target.

0 commit comments

Comments
 (0)