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

Simplified some loops based on go-staticcheck S1011 #656

Merged
merged 3 commits into from Jul 13, 2021

Conversation

atombrella
Copy link
Contributor

@atombrella atombrella commented Jul 2, 2021

More details about the pattern are given in https://staticcheck.io/docs/checks#S1011

I found the matches with staticcheck . | grep S1011 inside the digitalocean directory.

Edit: Same with S1031.

@atombrella
Copy link
Contributor Author

@scotchneat @andrewsomething Maybe you can also take a look at this. It's less "controversial" than #657

Copy link
Contributor

@scotchneat scotchneat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for the clean-up!

@scotchneat scotchneat merged commit 35e97db into digitalocean:main Jul 13, 2021
@atombrella atombrella deleted the staticcheck_s1011 branch July 14, 2021 06:53
benwebber added a commit to benwebber/terraform-provider-digitalocean that referenced this pull request Oct 3, 2021
Fixes regression introduced in 35e97db.

See-also: 35e97db (Simplified some loops based on go-staticcheck S1011 (digitalocean#656), 2021-07-13)
andrewsomething pushed a commit that referenced this pull request Oct 4, 2021
Fixes regression introduced in 35e97db.

See-also: 35e97db (Simplified some loops based on go-staticcheck S1011 (#656), 2021-07-13)
atombrella pushed a commit to atombrella/terraform-provider-digitalocean that referenced this pull request Oct 10, 2021
Fixes regression introduced in 35e97db.

See-also: 35e97db (Simplified some loops based on go-staticcheck S1011 (digitalocean#656), 2021-07-13)
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.

None yet

2 participants