Skip to content

Commit

Permalink
Switched the OSArchitecture public property of the CurrentPlatform to…
Browse files Browse the repository at this point in the history
… ToLowerInvariant() use.

Removed no longer needed usings.
  • Loading branch information
xvitaly committed Oct 28, 2024
1 parent 4cbc3d9 commit 69f9666
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/corelib/CurrentPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Permissions;
Expand Down Expand Up @@ -229,7 +228,7 @@ public virtual void StartServiceRepair(string FullBinPath)
/// <summary>
/// Get information about operating system architecture for the HTTP_USER_AGENT header.
/// </summary>
public virtual string OSArchitecture => RuntimeInformation.OSArchitecture.ToString().ToLower(CultureInfo.InvariantCulture);
public virtual string OSArchitecture => RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant();

/// <summary>
/// Get current operating system friendly name for the HTTP_USER_AGENT header.
Expand Down

0 comments on commit 69f9666

Please sign in to comment.