Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update transaction.js #3252

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Update transaction.js #3252

merged 1 commit into from
Dec 3, 2023

Conversation

lnedry
Copy link
Contributor

@lnedry lnedry commented Dec 3, 2023

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..

Changes proposed in this pull request:

  • remove redundant check of this.header_pos

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..
Copy link
Member

@msimerson msimerson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed all uses of header_pos and don't see any cases in which its value could be anything but an unsigned int.

@msimerson msimerson merged commit 1f5dd23 into haraka:master Dec 3, 2023
14 checks passed
@msimerson msimerson mentioned this pull request Dec 12, 2023
11 tasks
msimerson added a commit that referenced this pull request Feb 8, 2024
### [3.0.3] - 2024-02-07

#### Added

- feat(auth_vpopmaild): when outbound, assure the envelope domain matches AUTH domain #3265
- docs(outbound): remove example setting outbound_ip #3253
- doc(Plugins.md): add pi-queue-kafka #3247
- feat(rabbitmq_amqplib): configurable optional queue arguments #3239
- feat(clamd): add x-haraka-virus header #3207

#### Fixed

- Fix: add empty string as param to .join() on bounce. #3237
- Update links in documentation #3234
- fix(ob/hmail):Add filename to the error for easy debugging
- fix(ob/queue): Ignore 'error.' prefixed files in the queue because corrupted

#### Changed

- docs(outbound): remove example of outbound_ip #3253
- transaction: simplify else condition in add_data #3252
- q/smtp_forward: always register get_mx hook #3204
- dep(pi-es): bump version to 8.0.2 #3206
- dep(redis): bump version to 4.6.7 #3193
- dep(pi-spf): bump version to 1.2.4
- dep(net-utils): bump version to 1.5.3
- dep(pi-redis): bump version to 2.0.6
- dep(tld): bump version to 1.2.0
- remove defunct config files: lookup_rdns.strict.ini, lookup_rdns.strict.timeout, lookup_rdns.strict.whitelist, lookup_rdns.strict.whitelist_regex, rcpt_to.blocklist, rdns.allow_regexps, rdns.deny_regexps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants