From 519019084d8e8a29596c087aedb307fa9b8f7250 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Mon, 18 Dec 2023 11:53:58 +0100 Subject: [PATCH] fix: remove redundant setTimeout it's already handled by got --- src/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.js b/src/index.js index 154e4c2..c4b4aa9 100644 --- a/src/index.js +++ b/src/index.js @@ -28,7 +28,6 @@ const fetch = PCancelable.fn( responseType: 'buffer' }) - setTimeout(req.cancel, reqTimeout).unref() onCancel.shouldReject = false onCancel(() => {