Skip to content

Commit a8d3679

Browse files
a7medevahoppen
andauthored
Simplify return of SkipUnless.getSourceKitD
Co-authored-by: Alex Hoppen <[email protected]>
1 parent 0bcd943 commit a8d3679

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/SKTestSupport/SkipUnless.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,10 @@ package actor SkipUnless {
398398
guard let sourcekitdPath = await ToolchainRegistry.forTesting.default?.sourcekitd else {
399399
throw GenericError("Could not find SourceKitD")
400400
}
401-
let sourcekitd = try await SourceKitD.getOrCreate(
401+
return try await SourceKitD.getOrCreate(
402402
dylibPath: sourcekitdPath,
403403
pluginPaths: try sourceKitPluginPaths
404404
)
405-
406-
return sourcekitd
407405
}
408406
}
409407

0 commit comments

Comments
 (0)