Skip to content

Commit

Permalink
transaction.js: simplify else condition in add_data (#3252)
Browse files Browse the repository at this point in the history
this.header_pos was tested for zero on the previous line (148) so at this point (155), it would contain a number greater than zero and doesn't need to be tested again.
  • Loading branch information
lnedry authored Dec 3, 2023
1 parent e0e2b33 commit 1f5dd23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Transaction {
this.header_lines.push(line.toString(this.encoding).replace(/\r\n$/, '\n'));
}
}
else if (this.header_pos && this.parse_body) {
else if (this.parse_body) {
let new_line = line;
if (new_line[0] === 0x2E) new_line = new_line.slice(1); // Strip leading "."

Expand Down

0 comments on commit 1f5dd23

Please sign in to comment.