]> zoso.dev Git - buffer.git/commitdiff
index: unused result unnecessarily asm'd?
authorDaniel Cousens <github@dcousens.com>
Wed, 22 Apr 2015 00:28:19 +0000 (10:28 +1000)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 22 Apr 2015 23:28:26 +0000 (16:28 -0700)
index.js

index faf3ff8c918c04fa58be672c1e451ec6a8e942c0..935ab995a4b73157e324da925184288113d825eb 100644 (file)
--- 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
 }