-
Notifications
You must be signed in to change notification settings - Fork 226
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
various staticcheck fixes #710
Conversation
@@ -197,6 +197,7 @@ func isEUI(ip net.IP) bool { | |||
} | |||
|
|||
func sameV6Net(a, b net.IP) bool { | |||
//lint:ignore SA1021 We're comparing only parts of the IP address here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is annoying, especially since we need both comments here (this new one for staticcheck, the //nolint
for gopls
(?)).
Furthermore, I think this is a false positive anyway: dominikh/go-tools#957.
routing.go
Outdated
}) | ||
return nil, err | ||
default: | ||
if err != nil && err != internal.ErrInvalidRecord { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. I liked this way of doing thing. Which tool has a problem with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
staticcheck didn't like that default
wasn't the first or the last. I can restore it to a switch
if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, up to you. Merge when ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched it back to a switch
.
e4d1dbb
to
5d95bf1
Compare
No description provided.