Skip to content

Commit

Permalink
fix fs.rm no have error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 28, 2020
1 parent 543d3b4 commit 02d639e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (isTsProject) {
} else {
const cacheTime = fs.readFileSync(configPath).toString();
if (new Date().getDate() !== parseInt(cacheTime, 10)) {
fs.rmSync(configPath);
fs.unlink(configPath, () => {});
}
}
}
Expand Down

0 comments on commit 02d639e

Please sign in to comment.