Skip to content

Commit 4332719

Browse files
authored
remove redundant inline method in IsPlatformIncompatible (#5060)
1 parent fb9f692 commit 4332719

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,12 +703,7 @@ private static bool IsSettingIncompatible(Architecture sourcePlatform,
703703
private static bool IsPlatformIncompatible(Architecture sourcePlatform, Architecture targetPlatform)
704704
{
705705
return sourcePlatform is not Architecture.Default and not Architecture.AnyCPU
706-
&& (targetPlatform == Architecture.X64 && !Is64BitOperatingSystem() || sourcePlatform != targetPlatform);
707-
708-
static bool Is64BitOperatingSystem()
709-
{
710-
return Environment.Is64BitOperatingSystem;
711-
}
706+
&& (targetPlatform == Architecture.X64 && !Environment.Is64BitOperatingSystem || sourcePlatform != targetPlatform);
712707
}
713708

714709
/// <summary>

0 commit comments

Comments
 (0)