fix(ext/fetch): Replace redundant local variable with inline return statement
*/
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.
},
);
});
- return p;
}
function abortFetch(request, responseObject) {
