misc: Migrate usage of RuntimeInformation to OperatingSystem (#2901)

Very basic migration across the codebase.
This commit is contained in:
Mary authored and GitHub committed 2021-12-04 20:02:30 -03:00
1 parent 7c9360d393
commit f39fce8f54
17 files changed
+77 -68

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ namespace ARMeilleure.Signal
{
if (_initialized) return;
bool unix = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
bool unix = OperatingSystem.IsLinux() || OperatingSystem.IsMacOS();
ref SignalHandlerConfig config = ref GetConfigRef();
if (unix)