From 9be858312553002841725b617050aaff3c48951d Mon Sep 17 00:00:00 2001 From: jeremiG Date: Thu, 27 Dec 2018 03:22:35 -0500 Subject: [PATCH] chore: replace ~~ with Math.trunc in res.length (option) (#1288) --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index 371875fe1..b7d77dea8 100644 --- a/lib/response.js +++ b/lib/response.js @@ -211,7 +211,7 @@ module.exports = { return; } - return ~~len; + return Math.trunc(len) || 0; }, /**