Skip to content

Commit 35a3bb7

Browse files
ZauberNerdquantizor
authored andcommitted
Fix early return for cached false values in importLocalName (#234)
Closes: #232
1 parent f011548 commit 35a3bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/detectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const localNameCache = {}
1313
export const importLocalName = (name, state, bypassCache = false) => {
1414
const cacheKey = name + state.file.opts.filename
1515

16-
if (!bypassCache && localNameCache[cacheKey]) {
16+
if (!bypassCache && cacheKey in localNameCache) {
1717
return localNameCache[cacheKey]
1818
}
1919

0 commit comments

Comments
 (0)