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: use ngx.null for nil check on null map values #20

Merged
merged 1 commit into from
Jul 18, 2022
Merged

Conversation

GGabriele
Copy link
Contributor

Right now, whenever a map containing some nil values is passed
to the process_auto_fields function, the code fails to
recognize it applying the wrong logic to it.

This commit makes sure this doesn't happen by performing the
nil check on ngx.null instead of nil.

Right now, whenever a map containing some nil values is passed
to the process_auto_fields function, the code fails to
recognize it applying the wrong logic to it.

This commit makes sure this doesn't happen by performing the
nil check on `ngx.null` instead of `nil`.
@GGabriele GGabriele requested a review from mikefero July 18, 2022 14:32
@GGabriele GGabriele requested a review from a team as a code owner July 18, 2022 14:32
@GGabriele GGabriele merged commit ce33d76 into main Jul 18, 2022
@GGabriele GGabriele deleted the fix/nil-check branch July 18, 2022 15:05
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