Skip to content

Commit 5638712

Browse files
committed
misc: inadvertent change regarding reverted (SdkPlatformInfo)
1 parent aafd2fe commit 5638712

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Yubico.Core/src/Yubico/PlatformInterop/SdkPlatformInfo.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,18 @@ public static SdkPlatform OperatingSystem
4949
{
5050
return SdkPlatform.Windows;
5151
}
52-
53-
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ||
54-
RuntimeInformation.IsOSPlatform(OSPlatform.Create("MACCATALYST")))
52+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
5553
{
5654
return SdkPlatform.MacOS;
5755
}
58-
59-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
56+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
6057
{
6158
return SdkPlatform.Linux;
6259
}
63-
64-
return SdkPlatform.Unknown;
60+
else
61+
{
62+
return SdkPlatform.Unknown;
63+
}
6564
}
6665
}
6766

0 commit comments

Comments
 (0)