Skip to content

Commit

Permalink
Address coderabbit feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler committed Oct 30, 2024
1 parent acbf4d8 commit 42bc0dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OrcanodeMonitor/Core/MezmoFetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static int MezmoLogSeconds
string? jsonString = await GetMezmoDataAsync(url);
if (jsonString == null)
{
// Error.
logger.LogDebug($"Failed to fetch Mezmo logs for {node.S3NodeName} between {from} and {to}");
return null;
}

Expand Down Expand Up @@ -127,7 +127,7 @@ public async static Task UpdateMezmoHostsAsync(OrcanodeMonitorContext context, I
try
{
string? jsonArray = await GetMezmoDataAsync(_mezmoHostsUrl);
if (string.IsNullOrEmpty(jsonArray))
if (jsonArray == null)
{
// Error so do nothing.
return;
Expand Down Expand Up @@ -237,7 +237,7 @@ public async static Task UpdateMezmoViewsAsync(OrcanodeMonitorContext context, I
try
{
string? jsonArray = await GetMezmoDataAsync(_mezmoViewsUrl);
if (string.IsNullOrEmpty(jsonArray))
if (jsonArray == null)
{
// Error so do nothing.
return;
Expand Down

0 comments on commit 42bc0dc

Please sign in to comment.