Skip to content

Commit

Permalink
Improved readability by cleaning up a conditional (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
khanrn authored Nov 22, 2023
1 parent a26ebe5 commit 39faddd
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ public void Process(ITelemetry item)

private static bool ExcludeItemTelemetry(ITelemetry item)
{
if (item is RequestTelemetry request && request.Url.ToString().EndsWith("/health"))
{
return true;
}

return false;
return item is RequestTelemetry request && request.Url.ToString().EndsWith("/health");
}
}
}

0 comments on commit 39faddd

Please sign in to comment.