Skip to content

Commit

Permalink
chore: replace ~~ with Math.trunc in res.length (option) (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpscrpt authored and dead-horse committed Dec 27, 2018
1 parent 7e46c20 commit 9be8583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response.js
Expand Up @@ -211,7 +211,7 @@ module.exports = {
return;
}

return ~~len;
return Math.trunc(len) || 0;
},

/**
Expand Down

0 comments on commit 9be8583

Please sign in to comment.