😝 replace removeSync by sync (#8513)

refs #8510

- nothing to see here!
This commit is contained in:
Katharina Irrgang 2017-06-01 14:11:50 +02:00 committed by Aileen Nowak
parent e2dcdd2866
commit 9023ff0b68

View File

@ -140,7 +140,7 @@ themes = {
// @TODO we should probably do this as part of saving the theme // @TODO we should probably do this as part of saving the theme
// remove zip upload from multer // remove zip upload from multer
// happens in background // happens in background
Promise.promisify(fs.removeSync)(zip.path) Promise.promisify(fs.remove)(zip.path)
.catch(function (err) { .catch(function (err) {
logging.error(new errors.GhostError({err: err})); logging.error(new errors.GhostError({err: err}));
}); });
@ -149,7 +149,7 @@ themes = {
// remove extracted dir from gscan // remove extracted dir from gscan
// happens in background // happens in background
if (checkedTheme) { if (checkedTheme) {
Promise.promisify(fs.removeSync)(checkedTheme.path) Promise.promisify(fs.remove)(checkedTheme.path)
.catch(function (err) { .catch(function (err) {
logging.error(new errors.GhostError({err: err})); logging.error(new errors.GhostError({err: err}));
}); });