From: Feross Aboukhadijeh Date: Thu, 10 Apr 2014 03:58:10 +0000 (-0700) Subject: fix weird whitespace bug X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=426cb5830922cfd1985dc5ffc36a36dedb1f6c5a;p=buffer.git fix weird whitespace bug if anyone knows an easy way to prevent this from happening (it’s option+space on OS X) please let me know! --- diff --git a/index.js b/index.js index 15e8ad5..01a9594 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ function Buffer (subject, encoding, noZero) { } var i - if (Buffer._useTypedArrays && typeof subject.byteLength === 'number') { + if (Buffer._useTypedArrays && typeof subject.byteLength === 'number') { // Speed optimization -- use set if we're copying from a typed array buf._set(subject) } else if (isArrayish(subject)) {