Skip to content

Commit

Permalink
Early exit when there are no dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Dec 6, 2023
1 parent 9b5a2d4 commit dd38153
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/StructuredLogger.Utils/NuGetSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ private bool AddDependencies(
return false;
}

if (lockFileTargetLibrary.Dependencies.Count == 0)
{
return false;
}

bool result = false;
bool expand = matcher.Terms.Count > 0;

Expand Down

0 comments on commit dd38153

Please sign in to comment.