We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf70266 + 56e9c6b commit 82e6238Copy full SHA for 82e6238
cyclonedx/Commands/Convert/DiffCommand.cs
@@ -106,7 +106,7 @@ public static async Task<int> Diff(
106
107
foreach (var fromComponent in new List<Component>(fromComponents))
108
{
109
- var toComponent = toComponents.First(c => c.Name == fromComponent.Name);
+ var toComponent = toComponents.FirstOrDefault(c => c.Name == fromComponent.Name);
110
if (toComponent != null)
111
112
result.ComponentVersions.Modified.Add(new ModifiedDiffItem<Component>
0 commit comments