summaryrefslogtreecommitdiff
path: root/lib/string_decoder.js
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-15 12:43:59 +0400
committerFedor Indutny <fedor@indutny.com>2014-07-15 12:43:59 +0400
commit9d9fc3fa3063c9117119c56e69679269250c1213 (patch)
tree58835176b12035fe87eafeeb2439b91ad9054cec /lib/string_decoder.js
parenta96d6603b3be28b97029d5d150e761aeb172434d (diff)
downloadandroid-node-v8-9d9fc3fa3063c9117119c56e69679269250c1213.tar.gz
android-node-v8-9d9fc3fa3063c9117119c56e69679269250c1213.tar.bz2
android-node-v8-9d9fc3fa3063c9117119c56e69679269250c1213.zip
lib: jslint string_decoder.js
Diffstat (limited to 'lib/string_decoder.js')
-rw-r--r--lib/string_decoder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/string_decoder.js b/lib/string_decoder.js
index 4a458334ec..fd11e51c8d 100644
--- a/lib/string_decoder.js
+++ b/lib/string_decoder.js
@@ -82,8 +82,8 @@ StringDecoder.prototype.write = function(buffer) {
while (this.charLength) {
// determine how many remaining bytes this buffer has to offer for this char
var available = (buffer.length >= this.charLength - this.charReceived) ?
- this.charLength - this.charReceived :
- buffer.length;
+ this.charLength - this.charReceived :
+ buffer.length;
// add the new bytes to the char buffer
buffer.copy(this.charBuffer, this.charReceived, 0, available);