From ce0ee4b6930658620e0365b745e7342da7c6c854 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 2 Jul 2025 10:29:43 -0400 Subject: [PATCH] Migrate Promise#return() in file.js --- chrome/content/zotero/xpcom/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;