Reducing duplication of Environment variable extraction

This commit is contained in:
Mike Richmond committed 2016-08-04 13:15:34 -07:00
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))