mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Reducing duplication of Environment variable extraction
This commit is contained in:
1 parent
d3625f7662
commit
1e4615114c
3 files changed
+7
-14
No files matched your search
@@ -211,6 +211,7 @@ namespace System.Management.Automation.Internal
|
||||
private static void CleanKeyParents(RegistryKey baseKey, string keyPath)
|
||||
{
|
||||
#if CORECLR
|
||||
// if ( ! Platform.Inbox) // Modify this to support registry checks for inbox CoreCLR
|
||||
return;
|
||||
#else // Windows && FullCLR
|
||||
using (RegistryKey key = baseKey.OpenSubKey(keyPath, true))
|
||||
|
||||
Reference in new issue
Block a user