Skip to content

Commit

Permalink
Fix early return for cached false values in importLocalName (#234)
Browse files Browse the repository at this point in the history
Closes: #232
  • Loading branch information
ZauberNerd authored and quantizor committed Jul 1, 2019
1 parent f011548 commit 35a3bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/detectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const localNameCache = {}
export const importLocalName = (name, state, bypassCache = false) => {
const cacheKey = name + state.file.opts.filename

if (!bypassCache && localNameCache[cacheKey]) {
if (!bypassCache && cacheKey in localNameCache) {
return localNameCache[cacheKey]
}

Expand Down

0 comments on commit 35a3bb7

Please sign in to comment.