File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,8 @@ struct Run: SwiftlyCommand {
5858 }
5959
6060 mutating func run( _ ctx: SwiftlyCoreContext ) async throws {
61- let versionUpdateReminder = try await validateSwiftly ( ctx)
62- defer {
63- versionUpdateReminder ( )
64- }
61+ try await validateSwiftly ( ctx)
62+
6563 var config = try await Config . load ( ctx)
6664
6765 // Handle the specific case where help is requested of the run subcommand
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ struct SelfUpdate: SwiftlyCommand {
2929 }
3030
3131 mutating func run( _ ctx: SwiftlyCoreContext ) async throws {
32- let _ = try await validateSwiftly ( ctx)
32+ try await validateSwiftly ( ctx)
3333
3434 let swiftlyBin = Swiftly . currentPlatform. swiftlyBinDir ( ctx) / " swiftly "
3535 guard try await fs. exists ( atPath: swiftlyBin) else {
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ extension Data {
9595}
9696
9797extension SwiftlyCommand {
98+ @discardableResult
9899 public mutating func validateSwiftly( _ ctx: SwiftlyCoreContext ) async throws -> ( ) -> Void {
99100 for requiredDir in Swiftly . requiredDirectories ( ctx) {
100101 guard try await fs. exists ( atPath: requiredDir) else {
You can’t perform that action at this time.
0 commit comments