Skip to content

Commit 9d9fc3f

Browse files
committed
lib: jslint string_decoder.js
1 parent a96d660 commit 9d9fc3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/string_decoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ StringDecoder.prototype.write = function(buffer) {
8282
while (this.charLength) {
8383
// determine how many remaining bytes this buffer has to offer for this char
8484
var available = (buffer.length >= this.charLength - this.charReceived) ?
85-
this.charLength - this.charReceived :
86-
buffer.length;
85+
this.charLength - this.charReceived :
86+
buffer.length;
8787

8888
// add the new bytes to the char buffer
8989
buffer.copy(this.charBuffer, this.charReceived, 0, available);

0 commit comments

Comments
 (0)