Skip to content

Commit 11f7d08

Browse files
committed
Avoid compiler error when built on unrecognized operating system
1 parent b8ef09a commit 11f7d08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/MapboxGeocoder/MBGeocoder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ let userAgent: String = {
3535
system = "tvOS"
3636
#elseif os(Linux)
3737
system = "Linux"
38+
#else
39+
system = "unknown"
3840
#endif
3941
let systemVersion = ProcessInfo().operatingSystemVersion
4042
components.append("\(system)/\(systemVersion.majorVersion).\(systemVersion.minorVersion).\(systemVersion.patchVersion)")

0 commit comments

Comments
 (0)