Skip to content

Commit

Permalink
remove redundant inline method in IsPlatformIncompatible (#5060)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 23, 2024
1 parent fb9f692 commit 4332719
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand Down

0 comments on commit 4332719

Please sign in to comment.