Skip to content

Commit

Permalink
🐛 Fix missing files leading to access errors
Browse files Browse the repository at this point in the history
  • Loading branch information
leolabs committed Nov 15, 2019
1 parent 2fe7d77 commit 8dcbdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const translate = async (
const cachePath = path.resolve(
resolvedCacheDir,
sourceLang,
languageFile.name,
languageFile ? languageFile.name : '',
);
let cacheDiff: string[] = [];
if (fs.existsSync(cachePath)) {
Expand Down

0 comments on commit 8dcbdd9

Please sign in to comment.