Skip to content

Commit

Permalink
removed unnecessary else if clause in function Dicer.prototype._oninfo.
Browse files Browse the repository at this point in the history
The else if clause was exactly the opposite of the if clause.
  • Loading branch information
RolandHeinze committed Aug 10, 2021
1 parent cba4d3c commit 8003224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Dicer.prototype._oninfo = function(isMatch, data, start, end) {
shouldWriteMore = this._part.push(data.slice(start, end));
if (!shouldWriteMore)
this._pause = true;
} else if (!this._isPreamble && this._inHeader) {
} else {
if (buf)
this._hparser.push(buf);
r = this._hparser.push(data.slice(start, end));
Expand Down

0 comments on commit 8003224

Please sign in to comment.