0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix(ext/fetch): Replace redundant local variable with inline return statement (#12583)

This commit is contained in:
Malted 2021-10-29 12:42:10 +01:00 committed by GitHub
parent 3ae8a8404b
commit 8e0fd1dca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -411,7 +411,7 @@
*/
function fetch(input, init = {}) {
// 1.
const p = new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
const prefix = "Failed to call 'fetch'";
webidl.requiredArguments(arguments.length, 1, { prefix });
// 2.
@ -472,7 +472,6 @@
},
);
});
return p;
}
function abortFetch(request, responseObject) {