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

fix: cause last element index check #122

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

dmuharemagic
Copy link
Contributor

@dmuharemagic dmuharemagic commented Nov 3, 2023

There was a bug introduced in one of the latest commits in PR #116, which replaces the lastElement !== -1 check with lastElement !== 1, consequently breaking the cause property extraction for a message with a single parameter.

Checklist

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@jsumners jsumners merged commit 7ea98d1 into fastify:master Nov 4, 2023
19 checks passed
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.

3 participants