Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky committed Dec 30, 2022
1 parent a9b79f6 commit d7c83c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void EnumerateEnvironmentVariables(EnvironmentVariableTarget target)
|| (PlatformDetection.IsWindows && PlatformDetection.IsPrivilegedProcess);

// [ActiveIssue("https://github.com/dotnet/runtime/issues/30566")]
if (PlatformDetection.IsWindowsNanoServer && target == EnvironmentVariableTarget.User)
if (PlatformDetection.IsWindowsNanoServer)
{
lookForSetValue = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class SetEnvironmentVariable
internal static bool IsSupportedTarget(EnvironmentVariableTarget target)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/30566")]
if (target == EnvironmentVariableTarget.User && PlatformDetection.IsWindowsNanoServer)
if (PlatformDetection.IsWindowsNanoServer)
{
return false;
}
Expand Down

0 comments on commit d7c83c4

Please sign in to comment.