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

Fix linting errors #414

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Fix linting errors #414

merged 1 commit into from
Jun 3, 2022

Conversation

annawinkler
Copy link
Contributor

@annawinkler annawinkler commented May 25, 2022

Description

Fix issues seen when running golangci-lint run

Testing plan

  1. When you run golangci-lint run on this branch, you should not see any issues.

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

$ TFE_ADDRESS="https://example" TFE_TOKEN="example" TF_ACC="1" go test ./... -v -tags=integration -run TestFunctionsAffectedByChange

...

helper_test.go Outdated Show resolved Hide resolved
tfe.go Outdated Show resolved Hide resolved
@annawinkler annawinkler force-pushed the aw/linting branch 3 times, most recently from 4a5ffa3 to 31057b7 Compare June 1, 2022 15:56
for {
defer tick.Stop()

for { //nolint
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We discussed the two approaches for this block. The linter would have us simplify this block to iterate over the range of the ticker values, but we prefer to stick with the for / select option because it's consistent with how we use tickers in this library.

@annawinkler annawinkler merged commit 88e12c3 into main Jun 3, 2022
@annawinkler annawinkler deleted the aw/linting branch June 3, 2022 17:24
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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

3 participants