Skip to content

Commit

Permalink
fix: remove redundant setTimeout (#181)
Browse files Browse the repository at this point in the history
it's already handled by got
  • Loading branch information
Kikobeats authored Dec 18, 2023
1 parent 418dcba commit f265414
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const fetch = PCancelable.fn(
responseType: 'buffer'
})

setTimeout(req.cancel, reqTimeout).unref()
onCancel.shouldReject = false

onCancel(() => {
Expand Down

0 comments on commit f265414

Please sign in to comment.