Skip to content

Commit 5796c06

Browse files
committed
Switch to stackotter/swift-winui as a test
1 parent c72824c commit 5796c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var swift510Products: [Product] = []
2525
branch: "main"
2626
),
2727
.package(
28-
url: "https://github.com/thebrowsercompany/swift-winui",
28+
url: "https://github.com/stackotter/swift-winui",
2929
branch: "main"
3030
),
3131
]
@@ -242,7 +242,7 @@ func getGtk4MinorVersion() -> Int? {
242242
let pipe = Pipe()
243243
process.standardOutput = pipe
244244

245-
guard let _ = try? process.run(),
245+
guard (try? process.run()) != nil,
246246
let data = try? pipe.fileHandleForReading.readToEnd(),
247247
case _ = process.waitUntilExit(),
248248
let version = String(data: data, encoding: .utf8)?.split(separator: ".")

0 commit comments

Comments
 (0)