Skip to content

Commit

Permalink
Use RuntimeInformation.ProcessArchitecture
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Nov 9, 2021
1 parent 35abcc7 commit 2bde4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibGit2Sharp/Core/Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal enum OperatingSystemType

internal static class Platform
{
public static string ProcessorArchitecture => IntPtr.Size == 8 ? "x64" : "x86";
public static string ProcessorArchitecture => RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();

public static OperatingSystemType OperatingSystem
{
Expand Down

0 comments on commit 2bde4cb

Please sign in to comment.