Skip to content

Commit

Permalink
fetch: removal of redundant condition (nodejs#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
debadree25 authored Dec 20, 2022
1 parent 8c9e34e commit fcc1698
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/fetch/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fcc1698

Please sign in to comment.