From 454d13b48582bf2a89d9d26731443905eec654ff Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Fri, 30 Jan 2026 14:03:43 +0000 Subject: [PATCH] Remove element check --- .../NugetPackageRestorer.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs index 6093e43e513..1d01412ee05 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs @@ -893,10 +893,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching // file systems, we may discover a configuration file such as `Nuget.Config` which is not recognised by `dotnet nuget`. // In that case, our call to `GetNugetFeeds` will retrieve the feeds from that file (because it is accepted when // provided explicitly as `--configfile` argument), but the call to `GetNugetFeedsFromFolder` will not. - if (explicitFeeds.Count > 0) - { - allFeeds.UnionWith(explicitFeeds); - } + allFeeds.UnionWith(explicitFeeds); } else {