File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/System.Management.Automation/engine Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,11 @@ private PowerShellConfig()
83
83
systemWideConfigFile = Path . Combine ( systemWideConfigDirectory , ConfigFileName ) ;
84
84
85
85
// Sets the per-user configuration directory
86
- // Note: This directory may or may not exist depending upon the execution scenario.
87
- // Writes will attempt to create the directory if it does not already exist.
86
+ // Note: This directory may or may not exist depending upon the
87
+ // execution scenario. Writes will attempt to create the directory
88
+ // if it does not already exist.
88
89
perUserConfigDirectory = Platform . ConfigDirectory ;
89
- perUserConfigFile = Path . Combine ( perUserConfigDirectory , ConfigFileName ) ;
90
-
91
- emptyConfig = new JObject ( ) ;
92
- configRoots = new JObject [ 2 ] ;
93
- serializer = JsonSerializer . Create ( new JsonSerializerSettings { TypeNameHandling = TypeNameHandling . None , MaxDepth = 10 } ) ;
94
-
95
- fileLock = new ReaderWriterLockSlim ( ) ;
90
+ perUserConfigFile = Path . Combine ( perUserConfigDirectory , configFileName ) ;
96
91
}
97
92
98
93
private string GetConfigFilePath ( ConfigScope scope )
You can’t perform that action at this time.
0 commit comments