From fcc1698c5d500573b77e520b8af19310338df332 Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Wed, 21 Dec 2022 00:35:23 +0530 Subject: [PATCH] fetch: removal of redundant condition (#1821) --- lib/fetch/body.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/fetch/body.js b/lib/fetch/body.js index 3212631fb9b..72a71fd477b 100644 --- a/lib/fetch/body.js +++ b/lib/fetch/body.js @@ -171,11 +171,6 @@ function extractBody (object, keepalive = false) { if (object.type) { type = object.type } - } else if (object instanceof Uint8Array) { - // byte sequence - - // Set source to object. - source = object } else if (typeof object[Symbol.asyncIterator] === 'function') { // If keepalive is true, then throw a TypeError. if (keepalive) {