Skip to content

Commit 3de74b0

Browse files
committed
Merge pull request #1021 from ThomasBarnekow/beautify-platform-class
Beautify Platform class
2 parents 0a0dce7 + 1e64435 commit 3de74b0

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

‎LibGit2Sharp/Core/Platform.cs‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
usingSystem;
2-
usingSystem.Collections.Generic;
3-
usingSystem.Linq;
4-
usingSystem.Text;
52

63
namespaceLibGit2Sharp.Core
74
{
@@ -12,18 +9,13 @@ internal enum OperatingSystemType
129
MacOSX
1310
}
1411

15-
internalclassPlatform
12+
internalstaticclassPlatform
1613
{
1714
publicstaticstringProcessorArchitecture
1815
{
1916
get
2017
{
21-
if(Environment.Is64BitProcess)
22-
{
23-
return"amd64";
24-
}
25-
26-
return"x86";
18+
returnEnvironment.Is64BitProcess?"amd64":"x86";
2719
}
2820
}
2921

@@ -32,8 +24,6 @@ public static OperatingSystemType OperatingSystem
3224
get
3325
{
3426
// See http://www.mono-project.com/docs/faq/technical/#how-to-detect-the-execution-platform
35-
varplatformId=(int)Environment.OSVersion.Platform;
36-
3727
switch((int)Environment.OSVersion.Platform)
3828
{
3929
case4:

0 commit comments

Comments
(0)