Fix null guard bug (#2576)

This commit is contained in:
Yang Cao
2023-04-28 16:56:10 -04:00
committed by GitHub
parent 77b8586a03
commit 8d74a9ead6

View File

@@ -131,13 +131,13 @@ namespace GitHub.Runner.Common
private void InitializeWebsocketClient(string liveConsoleFeedUrl, string accessToken, TimeSpan delay, bool retryConnection = false) private void InitializeWebsocketClient(string liveConsoleFeedUrl, string accessToken, TimeSpan delay, bool retryConnection = false)
{ {
if (!string.IsNullOrEmpty(accessToken)) if (string.IsNullOrEmpty(accessToken))
{ {
Trace.Info($"No access token from server"); Trace.Info($"No access token from server");
return; return;
} }
if (!string.IsNullOrEmpty(liveConsoleFeedUrl)) if (string.IsNullOrEmpty(liveConsoleFeedUrl))
{ {
Trace.Info($"No live console feed url from server"); Trace.Info($"No live console feed url from server");
return; return;