Skip to content

Assorted nits reported by revive linter#2102

Merged
openshift-merge-bot[bot] merged 2 commits intocontainers:mainfrom
kolyshkin:revive
Sep 26, 2024
Merged

Assorted nits reported by revive linter#2102
openshift-merge-bot[bot] merged 2 commits intocontainers:mainfrom
kolyshkin:revive

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

@openshift-ci
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

Details 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
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