From 2a0cb6d21e72ef3b5a3667dd9a60f9818202fd5b Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 23 May 2024 13:25:53 +1000 Subject: [PATCH] remove redundant inline method in IsPlatformIncompatible --- .../InferRunSettingsHelper.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs index 6087dbb2e4..5fe1d6ded5 100644 --- a/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs +++ b/src/Microsoft.TestPlatform.Utilities/InferRunSettingsHelper.cs @@ -703,12 +703,7 @@ private static bool IsSettingIncompatible(Architecture sourcePlatform, private static bool IsPlatformIncompatible(Architecture sourcePlatform, Architecture targetPlatform) { return sourcePlatform is not Architecture.Default and not Architecture.AnyCPU - && (targetPlatform == Architecture.X64 && !Is64BitOperatingSystem() || sourcePlatform != targetPlatform); - - static bool Is64BitOperatingSystem() - { - return Environment.Is64BitOperatingSystem; - } + && (targetPlatform == Architecture.X64 && !Environment.Is64BitOperatingSystem || sourcePlatform != targetPlatform); } ///