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:
parent
3ae8a8404b
commit
8e0fd1dca1
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue