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 {
58
58
}
59
59
60
60
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
+
65
63
var config = try await Config . load ( ctx)
66
64
67
65
// 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 {
29
29
}
30
30
31
31
mutating func run( _ ctx: SwiftlyCoreContext ) async throws {
32
- let _ = try await validateSwiftly ( ctx)
32
+ try await validateSwiftly ( ctx)
33
33
34
34
let swiftlyBin = Swiftly . currentPlatform. swiftlyBinDir ( ctx) / " swiftly "
35
35
guard try await fs. exists ( atPath: swiftlyBin) else {
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ extension Data {
95
95
}
96
96
97
97
extension SwiftlyCommand {
98
+ @discardableResult
98
99
public mutating func validateSwiftly( _ ctx: SwiftlyCoreContext ) async throws -> ( ) -> Void {
99
100
for requiredDir in Swiftly . requiredDirectories ( ctx) {
100
101
guard try await fs. exists ( atPath: requiredDir) else {
You can’t perform that action at this time.
0 commit comments