Skip to content

ci bumps #4344

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 3 commits into from
Aug 1, 2024
Merged

ci bumps #4344

merged 3 commits into from
Aug 1, 2024

Conversation

kolyshkin
Copy link
Contributor

This bumps golangci-lint, adds another sub-linter for govet (nilness), and fixes the issues found by new/updated linters.

The code already checked if err == nil above, so the linter complains:

> libcontainer/container_linux.go:534:18: nilness: tautological condition: non-nil != nil (govet)
> 			} else if err != nil {
> 			              ^

Fix the issue, enable the check.

Signed-off-by: Kir Kolyshkin <[email protected]>
This function never returns error since 2016 (commit 556f798),
so let's remove it.

Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin marked this pull request as ready for review July 18, 2024 14:54
@kolyshkin
Copy link
Contributor Author

@opencontainers/runc-maintainers it's a pity this relatively easy to review PR sits in review for so long I forgot I created it and caught myself wanting to create this again (as I have newer golangci-lint installed locally and it shows some warnings fixed here). PTAL.

Copy link
Member

@rata rata left a comment

Choose a reason for hiding this comment

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

LGTM!

@rata rata merged commit ad5b481 into opencontainers:main Aug 1, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants