From b687a3604c0a9037ac5ea9893d16b47f233cfb78 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 2 Oct 2022 15:34:51 +0100 Subject: [PATCH] change the platform strings to DotNet --- OpenSim/Framework/Util.cs | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 2ab2bd0cff..96faef785f 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -2339,24 +2339,12 @@ namespace OpenSim.Framework public static string GetRuntimeInformation() { - string ru = String.Empty; - - if (Environment.OSVersion.Platform == PlatformID.Unix) + return Environment.OSVersion.Platform switch { - ru = "Unix/Mono"; - } - else - if (Environment.OSVersion.Platform == PlatformID.MacOSX) - ru = "OSX/Mono"; - else - { - if (IsPlatformMono) - ru = "Win/Mono"; - else - ru = "Win/.NET"; - } - - return ru; + PlatformID.MacOSX => "OSX/DotNet", + PlatformID.Unix => "Unix/DotNet", + _ => "Win/DotNet", + }; } ///