Skip to content

Commit

Permalink
Check for packages >= 1
Browse files Browse the repository at this point in the history
Signed-off-by: Maisie Sadler <[email protected]>
  • Loading branch information
tl-maisie-sadler committed Aug 8, 2024
1 parent 78a39f8 commit c426ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CycloneDX/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public async Task<int> HandleCommandAsync(RunOptions options)
if (!bomRefLookup.ContainsKey(lookupKey))
{
var packageNameMatch = bomRefLookup.Where(x => x.Key.Item1 == dep.Key.ToLower(CultureInfo.InvariantCulture)).ToList();
if (packageNameMatch.Count == 1)
if (packageNameMatch.Count >= 1)
{
lookupKey = packageNameMatch.First().Key;
}
Expand Down

0 comments on commit c426ea8

Please sign in to comment.