diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index b9bdcd5e31..2472efaac5 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -662,7 +662,7 @@ Zotero.File = new function () { */ this.removeIfExists = function (path) { return Promise.resolve(OS.File.remove(path)) - .return(true) + .then(() => true) .catch(function (e) { if (e instanceof OS.File.Error && e.becauseNoSuchFile) { return false;