Skip to content

Commit

Permalink
馃槤 replace removeSync by sync (#8513)
Browse files Browse the repository at this point in the history
refs #8510

- nothing to see here!
  • Loading branch information
kirrg001 authored and aileen committed Jun 1, 2017
1 parent e2dcdd2 commit 9023ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/api/themes.js
Expand Up @@ -140,7 +140,7 @@ themes = {
// @TODO we should probably do this as part of saving the theme
// remove zip upload from multer
// happens in background
Promise.promisify(fs.removeSync)(zip.path)
Promise.promisify(fs.remove)(zip.path)
.catch(function (err) {
logging.error(new errors.GhostError({err: err}));
});
Expand All @@ -149,7 +149,7 @@ themes = {
// remove extracted dir from gscan
// happens in background
if (checkedTheme) {
Promise.promisify(fs.removeSync)(checkedTheme.path)
Promise.promisify(fs.remove)(checkedTheme.path)
.catch(function (err) {
logging.error(new errors.GhostError({err: err}));
});
Expand Down

0 comments on commit 9023ff0

Please sign in to comment.