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

chore: fix caching of ignored files #111

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/config-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,12 @@ export class ConfigArray extends Array {
const cache = this[ConfigArraySymbol.configCache];

// first check the cache for a filename match to avoid duplicate work
let finalConfig = cache.get(filePath);

if (finalConfig) {
return finalConfig;
if (cache.has(filePath)) {
return cache.get(filePath);
}

let finalConfig;

// next check to see if the file should be ignored

// check if this should be ignored due to its directory
Expand Down