Skip to content

Commit

Permalink
Merge pull request #96 from groupon/dbushong-patch-1
Browse files Browse the repository at this point in the history
fix: bug in body validation
  • Loading branch information
dbushong committed Mar 25, 2019
2 parents ded21e2 + c21d116 commit 9f34508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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 9f34508

Please sign in to comment.