Skip to content

Commit d65036f

Browse files
authored
Apply suggestions from code review
1 parent 421f18f commit d65036f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static partial class PlatformDetection
3131

3232
public static bool IsMonoLinuxArm64 => IsMonoRuntime && IsLinux && IsArm64Process;
3333
public static bool IsNotMonoLinuxArm64 => !IsMonoLinuxArm64;
34+
public static bool IsQemuLinux => IsLinux && Environment.GetEnvironmentVariable("DOTNET_RUNNING_UNDER_QEMU") != null;
3435
public static bool IsNotQemuLinux => !IsQemuLinux;
3536

3637
// OSX family
@@ -112,19 +113,6 @@ public static bool OpenSslPresentOnSystem
112113
}
113114
}
114115

115-
public static bool IsQemuLinux
116-
{
117-
get
118-
{
119-
if (IsLinux)
120-
{
121-
return Environment.GetEnvironmentVariable("DOTNET_RUNNING_UNDER_QEMU") != null;
122-
}
123-
124-
return false;
125-
}
126-
}
127-
128116
private static Version s_opensslVersion;
129117
private static Version GetOpenSslVersion()
130118
{

0 commit comments

Comments
 (0)