mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Fix missing negation
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user