You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
golint reports: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary).
Not sure if the code should be modified.
Thanks.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
The
Value
example in the flag package (https://golang.org/pkg/flag/#example_Value) uses the code:golint
reports:if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
.Not sure if the code should be modified.
Thanks.
The text was updated successfully, but these errors were encountered: