Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
EXTS[format].some(ext => {
const resPath = path.append(locale, `${namespace}.${ext}`);
const isCached = this.fileCache.has(resPath);
if (!resPath.exists()) {
return false;
}
if (!isCached) {
this.fileCache.set(resPath, parseFile(resPath));
}
Object.assign(resources, this.fileCache.get(resPath));
return true;
});
});