Skip to content

Commit f9c6d5e

Browse files
committed
Ensure files are only enumerated once
1 parent b14d26a commit f9c6d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public DependencyManager(string srcDir, IDependencyOptions options, ILogger logg
7272
this.progressMonitor.FindingFiles(srcDir);
7373

7474

75-
var allFiles = GetAllFiles();
75+
var allFiles = GetAllFiles().ToList();
7676
var binaryFileExtensions = new HashSet<string>(new[] { ".dll", ".exe" }); // TODO: add more binary file extensions.
7777
var allNonBinaryFiles = allFiles.Where(f => !binaryFileExtensions.Contains(f.Extension.ToLowerInvariant())).ToList();
7878
var smallNonBinaryFiles = allNonBinaryFiles.SelectSmallFiles(progressMonitor).SelectFileNames();

0 commit comments

Comments
 (0)