Skip to content

Assorted nits reported by revive linter #2102

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

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

kolyshkin
Copy link
Contributor

See individual commits for details.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
t.Fatal[f] stops the execution of the test case immediately, so anything
that follows is unreachable code and has no effect.

Remove it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@rhatdan
Copy link
Member

rhatdan commented Sep 20, 2024

/approve
LGTM

Copy link
Contributor

openshift-ci bot commented Sep 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kolyshkin, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nalind
Copy link
Member

nalind commented Sep 23, 2024

Should this be enabling the linter in .golangci.yml, too?

@kolyshkin
Copy link
Contributor Author

Should this be enabling the linter in .golangci.yml, too?

This linter is sort of too opinionated, and thus it's best to run it manually and only fix those warnings that make sense.

We can, of course, annotate all the warnings that we don't want to fix, and then enable the linter, but I'm not sure it makes sense.

@rhatdan
Copy link
Member

rhatdan commented Sep 26, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 42fbe2d into containers:main Sep 26, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants