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

Solve errcheck warnings (part 0) #1993

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

Honny1
Copy link
Collaborator

@Honny1 Honny1 commented Jul 1, 2024

This PR is one of several fixes of warnings found by golangci when the errcheck linter is enabled.

Partially fixes:

@Honny1 Honny1 force-pushed the fix-errcheck branch 3 times, most recently from a6e7879 to 621f125 Compare July 1, 2024 14:50
@Honny1 Honny1 marked this pull request as ready for review July 2, 2024 09:20
Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -590,7 +590,12 @@ func MaybeReexecUsingUserNamespace(evenForRoot bool) {
cmd.Hook = func(int) error {
go func() {
for receivedSignal := range interrupted {
cmd.Cmd.Process.Signal(receivedSignal)
if err := cmd.Cmd.Process.Signal(receivedSignal); err != nil {
logrus.Debugf(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
logrus.Debugf(
logrus.Warnf(

Copy link
Contributor

openshift-ci bot commented Jul 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, Honny1, saschagrunert

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:
  • OWNERS [giuseppe,saschagrunert]

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

pkg/idmap/idmapped_utils.go Outdated Show resolved Hide resolved
pkg/unshare/unshare_linux.go Outdated Show resolved Hide resolved
types/utils.go Outdated Show resolved Hide resolved
pkg/idmap/idmapped_utils.go Outdated Show resolved Hide resolved
pkg/idmap/idmapped_utils.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks!

@openshift-merge-bot openshift-merge-bot bot merged commit 9c1271a into containers:main Jul 9, 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.

None yet

4 participants