From: Daniel Cousens Date: Wed, 22 Apr 2015 00:28:19 +0000 (+1000) Subject: index: unused result unnecessarily asm'd? X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=32deb537111e1cd850bf9945e45b85dc58e01036;p=buffer.git index: unused result unnecessarily asm'd? --- diff --git a/index.js b/index.js index faf3ff8..935ab99 100644 --- a/index.js +++ b/index.js @@ -105,7 +105,7 @@ function fromString (that, string, encoding) { var length = byteLength(string, encoding) | 0 that = allocate(that, length) - that.write(string, encoding) | 0 + that.write(string, encoding) return that }