We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96d660 commit 9d9fc3fCopy full SHA for 9d9fc3f
1 file changed
lib/string_decoder.js
@@ -82,8 +82,8 @@ StringDecoder.prototype.write = function(buffer) {
82
while (this.charLength) {
83
// determine how many remaining bytes this buffer has to offer for this char
84
var available = (buffer.length >= this.charLength - this.charReceived) ?
85
- this.charLength - this.charReceived :
86
- buffer.length;
+ this.charLength - this.charReceived :
+ buffer.length;
87
88
// add the new bytes to the char buffer
89
buffer.copy(this.charBuffer, this.charReceived, 0, available);
0 commit comments