Skip to content

Commit cfe366a

Browse files
committed
Don't fail when QNX 7 SDP is present on the system and Rosetta is not installed
Auxiliary platform lookup is intended to be failable; one of the three calls to cachedQNXSDPInstallations was missing a `try?` Closes #836
1 parent a4eb4d8 commit cfe366a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBQNXPlatform/Plugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct QNXEnvironmentExtension: EnvironmentExtension {
4545
let plugin: QNXPlugin
4646

4747
func additionalEnvironmentVariables(context: any EnvironmentExtensionAdditionalEnvironmentVariablesContext) async throws -> [String : String] {
48-
if let latest = try await plugin.cachedQNXSDPInstallations(host: context.hostOperatingSystem).first {
48+
if let latest = try? await plugin.cachedQNXSDPInstallations(host: context.hostOperatingSystem).first {
4949
return .init(latest.environment)
5050
}
5151
return [:]

0 commit comments

Comments
 (0)