Skip to content

Commit 6fba26f

Browse files
committed
Removed unused field and did some minor refactoring.
1 parent 6a99e4f commit 6fba26f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ internal static class TestRuntime
1010
{
1111
static TestRuntime()
1212
{
13-
HasFlakyLinuxArm64Result = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && Runtime.Architecture is Architecture.Arm64;
14-
HasFlakyMacOSResult = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
15-
HasFlakyMacOSArm64Result = HasFlakyMacOSResult && Runtime.Architecture == Architecture.Arm64;
13+
var isLinux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
14+
var isMacOS = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
15+
16+
HasFlakyLinuxArm64Result = isLinux && Runtime.Architecture == Architecture.Arm64;
17+
HasFlakyMacOSResult = isMacOS;
18+
HasFlakyMacOSArm64Result = isMacOS && Runtime.Architecture == Architecture.Arm64;
1619
}
1720

1821
public static bool HasFlakyLinuxArm64Result { get; }
1922

2023
public static bool HasFlakyMacOSResult { get; }
2124

2225
public static bool HasFlakyMacOSArm64Result { get; }
23-
24-
private static bool IsMacOS { get; }
2526
}

0 commit comments

Comments
 (0)