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: httpErr always non-nil #33

Merged
merged 1 commit into from
Jun 4, 2024
Merged

fix: httpErr always non-nil #33

merged 1 commit into from
Jun 4, 2024

Conversation

fosmjo
Copy link
Contributor

@fosmjo fosmjo commented May 31, 2024

Decalre httpErr using httpErr := new(echo.HTTPError) will cause it to be non-nil, which make following codeif httpErr != nil always true and will always log a error attribute, so we should decalre httpErr using var httpErr *echo.HTTPError .

@fosmjo
Copy link
Contributor Author

fosmjo commented Jun 3, 2024

@samber hi, do you have time to review this pr?

@samber
Copy link
Owner

samber commented Jun 4, 2024

Thanks for the fix !

@samber samber merged commit 1205207 into samber:main Jun 4, 2024
2 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.

2 participants