Skip to content

Commit

Permalink
fix: update index-fetch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Oct 8, 2022
1 parent 147beaa commit 45d678a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index-fetch.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
'use strict'

const { getGlobalDispatcher } = require('./lib/global')
const fetchImpl = require('./lib/fetch').fetch

module.exports.fetch = async function fetch (resource) {
const dispatcher = (arguments[1] && arguments[1].dispatcher) || getGlobalDispatcher()
try {
return await fetchImpl.apply(dispatcher, arguments)
return await fetchImpl(...arguments)
} catch (err) {
Error.captureStackTrace(err, this)
throw err
Expand Down

0 comments on commit 45d678a

Please sign in to comment.