mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Remove special handling for Promise.coroutine() in server.js
This commit is contained in:
parent
9bed1585d5
commit
549d8d0e2f
1 changed files with 1 additions and 4 deletions
|
|
@ -394,10 +394,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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue