Skip to content

Commit b5e58db

Browse files
committed
Remove unnecessary 'await' where no async operations occur
1 parent e6a78f5 commit b5e58db

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/MacOSPlatform/MacOS.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public struct MacOS: Platform {
117117

118118
if ctx.mockedHomeDir == nil {
119119
await ctx.message("Extracting the swiftly package...")
120-
try await sys.installer(
120+
sys.installer(
121121
.pkg(archive),
122122
.target("CurrentUserHomeDirectory")
123123
)

Sources/SwiftlyCore/ModeledCommandLine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ extension Runnable {
181181
newEnv = newValue
182182
}
183183

184-
try await p.runProgram([executable] + args, quiet: quiet, env: newEnv)
184+
try p.runProgram([executable] + args, quiet: quiet, env: newEnv)
185185
}
186186
}
187187

Tools/generate-command-models/GenerateCommandModels.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct GenerateCommandModels: AsyncParsableCommand {
7070
"""
7171
}
7272

73-
try await allCmds.write(to: URL(fileURLWithPath: self.outputFile), atomically: true, encoding: .utf8)
73+
try allCmds.write(to: URL(fileURLWithPath: self.outputFile), atomically: true, encoding: .utf8)
7474
}
7575

7676
struct Vars {

0 commit comments

Comments
 (0)