Skip to content

Commit

Permalink
fix(icon): clean cacheDir when generating icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 13, 2020
1 parent ce3bbc0 commit 1e6eb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icon/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async function resizeIcons (options) {
if (await fs.exists(options.integrityFile)) {
return
}

await fs.remove(options._cacheDir)
await fs.mkdirp(options._cacheDir)

await new Promise((resolve, reject) => {
Expand Down

0 comments on commit 1e6eb19

Please sign in to comment.