We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aafd2fe commit 5638712Copy full SHA for 5638712
Yubico.Core/src/Yubico/PlatformInterop/SdkPlatformInfo.cs
@@ -49,19 +49,18 @@ public static SdkPlatform OperatingSystem
49
{
50
return SdkPlatform.Windows;
51
}
52
-
53
- if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ||
54
- RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST")))
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
55
56
return SdkPlatform.MacOS;
57
58
59
- if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
60
61
return SdkPlatform.Linux;
62
63
64
- return SdkPlatform.Unknown;
+ else
+ {
+ return SdkPlatform.Unknown;
+ }
65
66
67
0 commit comments