Skip to content

Commit

Permalink
fix: body validating condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Richter committed Feb 2, 2020
1 parent 27caa09 commit 97bf3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function isValidBody(body) {
}

function validateBody(body) {
if (!isValidBody) {
if (!isValidBody(body)) {
throw new TypeError(`Invalid body ${typeof body}`);
}
return body;
Expand Down

0 comments on commit 97bf3e0

Please sign in to comment.