Skip to content

Commit 260624a

Browse files
authored
Clean up main function signature in SwiftPM.swift (#7370)
This function always returns `true` result right now, which is discarded. We simply shouldn't return anything at all.
1 parent 4e80788 commit 260624a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/swift-package-manager/SwiftPM.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ struct SwiftPM {
3333
}
3434
}
3535

36-
@discardableResult
37-
private static func main(execName: String?) async -> Bool {
36+
private static func main(execName: String?) async {
3837
switch execName {
3938
case "swift-package":
4039
await SwiftPackageCommand.main()
@@ -53,7 +52,5 @@ struct SwiftPM {
5352
default:
5453
fatalError("swift-package-manager launched with unexpected name: \(execName ?? "(unknown)")")
5554
}
56-
57-
return true
5855
}
5956
}

0 commit comments

Comments
 (0)