File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static void Initialize()
32
32
33
33
HotReloadAgent . ClearHotReloadEnvironmentVariables ( typeof ( StartupHook ) ) ;
34
34
35
- if ( s_namedPipeName == null )
35
+ if ( string . IsNullOrEmpty ( s_namedPipeName ) )
36
36
{
37
37
Log ( $ "Environment variable { AgentEnvironmentVariables . DotNetWatchHotReloadNamedPipeName } has no value") ;
38
38
return ;
@@ -86,7 +86,7 @@ private static void RegisterSignalHandlers()
86
86
private static void Log ( string message )
87
87
{
88
88
var prefix = s_standardOutputLogPrefix ;
89
- if ( prefix != null )
89
+ if ( ! string . IsNullOrEmpty ( prefix ) )
90
90
{
91
91
Console . ForegroundColor = ConsoleColor . DarkGray ;
92
92
Console . WriteLine ( $ "{ prefix } { message } ") ;
Original file line number Diff line number Diff line change @@ -237,8 +237,8 @@ public static void ClearHotReloadEnvironmentVariables(Type startupHookType)
237
237
Environment . SetEnvironmentVariable ( AgentEnvironmentVariables . DotNetStartupHooks ,
238
238
RemoveCurrentAssembly ( startupHookType , Environment . GetEnvironmentVariable ( AgentEnvironmentVariables . DotNetStartupHooks ) ! ) ) ;
239
239
240
- Environment . SetEnvironmentVariable ( AgentEnvironmentVariables . DotNetWatchHotReloadNamedPipeName , "" ) ;
241
- Environment . SetEnvironmentVariable ( AgentEnvironmentVariables . HotReloadDeltaClientLogMessages , "" ) ;
240
+ Environment . SetEnvironmentVariable ( AgentEnvironmentVariables . DotNetWatchHotReloadNamedPipeName , null ) ;
241
+ Environment . SetEnvironmentVariable ( AgentEnvironmentVariables . HotReloadDeltaClientLogMessages , null ) ;
242
242
}
243
243
244
244
// internal for testing
You can’t perform that action at this time.
0 commit comments