Skip to content

modernize some code - #2248

Merged
ktock merged 1 commit into
containerd:mainfrom
thaJeztah:modernize
Feb 16, 2026
Merged

ktock merged 1 commit into
containerd:mainfrom
thaJeztah:modernize

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Results of running the modernize command;

go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -fix ./...

@thaJeztah
thaJeztah requested a review from ktock February 15, 2026 14:24

@ktock ktock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you rebase the PR to pass CI?

Results of running the modernize command;

    go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
    modernize -fix ./...

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah

Copy link
Copy Markdown
Member Author

Thx! Rebased this one as well 🤞

@ktock ktock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@ktock
ktock merged commit 0b9f220 into containerd:main Feb 16, 2026
44 checks passed
@thaJeztah
thaJeztah deleted the modernize branch February 16, 2026 12:34
@thaJeztah

Copy link
Copy Markdown
Member Author

I think I saw that golangci-lint now has a linter for this as well; haven't tried it yet, but will give it a try on other repos (and if it does, we could add it here potentially as well)

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.

2 participants