From 6b2331b647d57175ebe88e3ca472f807031b0a60 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 8 Jul 2025 16:36:50 -0400 Subject: [PATCH] Remove special handling for Promise.coroutine() in server.js --- chrome/content/zotero/xpcom/server/server.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/server/server.js b/chrome/content/zotero/xpcom/server/server.js index 9a8b77f95b..f9f16b1195 100755 --- a/chrome/content/zotero/xpcom/server/server.js +++ b/chrome/content/zotero/xpcom/server/server.js @@ -468,10 +468,7 @@ Zotero.Server.RequestHandler.prototype._processEndpoint = async function (method // - Takes an object with 'method', 'pathname', 'pathParams', 'searchParams', 'headers', and 'data' // - Returns a status code, an array containing [statusCode, contentType, body], // or a promise for either - if (endpoint.init.length === 1 - // Return value from Zotero.Promise.coroutine() - || endpoint.init.length === 0) { - + if (endpoint.init.length === 1) { let maybePromise = endpoint.init({ method, pathname: this.pathname,