Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 839d838

Browse files
authored
fix: caching of ignored files (#111)
1 parent 8d4c935 commit 839d838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/config-array.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,12 +702,12 @@ export class ConfigArray extends Array {
702702
const cache = this[ConfigArraySymbol.configCache];
703703

704704
// first check the cache for a filename match to avoid duplicate work
705-
let finalConfig = cache.get(filePath);
706-
707-
if (finalConfig) {
708-
return finalConfig;
705+
if (cache.has(filePath)) {
706+
return cache.get(filePath);
709707
}
710708

709+
let finalConfig;
710+
711711
// next check to see if the file should be ignored
712712

713713
// check if this should be ignored due to its directory

0 commit comments

Comments
 (0)