File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed 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