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

various staticcheck fixes #710

Merged
merged 1 commit into from
Apr 8, 2021
Merged

various staticcheck fixes #710

merged 1 commit into from
Apr 8, 2021

Conversation

marten-seemann
Copy link
Contributor

No description provided.

@@ -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.
Copy link
Contributor Author

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 {
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

@marten-seemann marten-seemann merged commit ee31a14 into master Apr 8, 2021
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
@marten-seemann marten-seemann deleted the fix-staticcheck branch June 14, 2021 18:25
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