mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Apply prettier to pendingRequestsMiddleware
This commit is contained in:
@@ -20,8 +20,7 @@ export const pendingRequestsMiddleware: Middleware = {
|
||||
const shared = getPendingAbortSignal();
|
||||
// Combine with any signal the caller may have set so we don't silently
|
||||
// drop their cancellation semantics.
|
||||
const signal =
|
||||
typeof AbortSignal.any === "function" ? AbortSignal.any([request.signal, shared]) : shared;
|
||||
const signal = typeof AbortSignal.any === "function" ? AbortSignal.any([request.signal, shared]) : shared;
|
||||
return new Request(request, { signal });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user