File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,16 +22,9 @@ function toUndiciFormData(body: FormData): UndiciFormData {
2222 return converted ;
2323}
2424
25- function mergeAbortSignal (
26- existing : AbortSignal | null | undefined ,
27- timeout : AbortSignal ,
28- ) : AbortSignal {
29- return existing ? AbortSignal . any ( [ existing , timeout ] ) : timeout ;
30- }
31-
3225function wrapDiscordFetch ( fetchImpl : NonNullable < RequestClientOptions [ "fetch" ] > ) {
3326 return ( input : string | URL | Request , init ?: RequestInit ) : Promise < Response > => {
34- const signal = mergeAbortSignal ( init ?. signal , AbortSignal . timeout ( DISCORD_REST_TIMEOUT_MS ) ) ;
27+ const signal = AbortSignal . timeout ( DISCORD_REST_TIMEOUT_MS ) ;
3528 if ( init ?. body instanceof FormData ) {
3629 // Carbon builds global FormData; undici-backed proxy fetch needs undici's
3730 // FormData class to preserve multipart boundaries.
You can’t perform that action at this time.
0 commit comments