Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
lib: jslint string_decoder.js
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jul 15, 2014
1 parent a96d660 commit 9d9fc3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/string_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d9fc3f

Please sign in to comment.