Fix missing negation

This commit is contained in:
Michael B. Gale
2026-01-30 13:30:47 +00:00
parent 1aba0b20cd
commit 3e0719609f

View File

@@ -824,7 +824,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
{
string[] acceptedNugetConfigNames = ["nuget.config", "NuGet.config", "NuGet.Config"];
var invalidNugetConfigs = nugetConfigs
.Where(path => acceptedNugetConfigNames.Contains(Path.GetFileName(path)));
.Where(path => !acceptedNugetConfigNames.Contains(Path.GetFileName(path)));
if (invalidNugetConfigs.Count() > 0)
{