Remove special handling for Promise.coroutine() in server.js

This commit is contained in:
Abe Jellinek 2025-07-08 16:36:50 -04:00 • committed by Dan Stillman
parent ae0413ce80
commit 6b2331b647

View file

@ -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,