Skip to content

Commit

Permalink
ordinal comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Aug 5, 2023
1 parent 84ddeca commit 05219af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public override void Dispose()

internal override bool IsSourceEnabled(DiagnosticListener diagnosticListener)
{
return diagnosticListener.Name.StartsWith(DiagnosticListenerName, StringComparison.Ordinal) && !diagnosticListener.Name.Equals(CosmosRequestSourceName);
return diagnosticListener.Name.StartsWith(DiagnosticListenerName, StringComparison.Ordinal) &&
!diagnosticListener.Name.Equals(CosmosRequestSourceName, StringComparison.Ordinal);
}

internal override bool IsActivityEnabled(string evnt, object context)
Expand Down

0 comments on commit 05219af

Please sign in to comment.