Skip to content

Commit 9be8583

Browse files
tpscrptdead-horse
authored andcommitted
chore: replace ~~ with Math.trunc in res.length (option) (#1288)
1 parent 7e46c20 commit 9be8583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ module.exports = {
211211
return;
212212
}
213213

214-
return ~~len;
214+
return Math.trunc(len) || 0;
215215
},
216216

217217
/**

0 commit comments

Comments
 (0)