Skip to content

Commit 454d13b

Browse files
committed
Remove element check
1 parent ad2aa6d commit 454d13b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -893,10 +893,7 @@ private IEnumerable<string> GetFeeds(Func<IList<string>> getNugetFeeds)
893893
// file systems, we may discover a configuration file such as `Nuget.Config` which is not recognised by `dotnet nuget`.
894894
// In that case, our call to `GetNugetFeeds` will retrieve the feeds from that file (because it is accepted when
895895
// provided explicitly as `--configfile` argument), but the call to `GetNugetFeedsFromFolder` will not.
896-
if (explicitFeeds.Count > 0)
897-
{
898-
allFeeds.UnionWith(explicitFeeds);
899-
}
896+
allFeeds.UnionWith(explicitFeeds);
900897
}
901898
else
902899
{

0 commit comments

Comments
 (0)