Skip to content

Commit

Permalink
Fix debug log condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cobya committed Sep 16, 2024
1 parent bb9945e commit 48299d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void RegisterUsage(
}

#if DEBUG
if (detectedComponent.DependencyRoots is null || detectedComponent.DependencyRoots.Count == 0)
if (detectedComponent.DependencyRoots?.Count == 0)
{
this.logger?.LogWarning("Detector should not populate DetectedComponent.DependencyRoots!");
}
Expand Down

0 comments on commit 48299d7

Please sign in to comment.