We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
return
gin should do something to save the return line
when met an error we use to lines to deal with it
var err error if err != nil{ c.Status(http.StatusInternalServerError) return }
It will be cool to use return c.Status(http.StatusInternalServerError) or provide some alike method to support this
return c.Status(http.StatusInternalServerError)
The text was updated successfully, but these errors were encountered:
retun
save the return line gin-gonic#3116
1818d94
@easonlin404
Please review
#3140
Added error return for c.Status(code) so that this can be used as return c.Status(code) to avoid/save extra return statement
Sorry, something went wrong.
No branches or pull requests
Description
gin should do something to save the
return
lineHow to reproduce
when met an error we use to lines to deal with it
It will be cool to use
return c.Status(http.StatusInternalServerError)
or provide some alike method to support thisThe text was updated successfully, but these errors were encountered: