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 1) #1998

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

Honny1
Copy link
Member

@Honny1 Honny1 commented Jul 3, 2024

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

Partially fixes:

@Honny1 Honny1 marked this pull request as ready for review July 3, 2024 12:48
@Honny1 Honny1 marked this pull request as draft July 3, 2024 13:50
@Honny1 Honny1 marked this pull request as ready for review July 3, 2024 16:14
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

@openshift-ci openshift-ci bot added the approved label Jul 4, 2024
@@ -681,7 +681,7 @@ func (a *Driver) Cleanup() error {
func (a *Driver) aufsMount(ro []string, rw, target string, options graphdriver.MountOpts) (err error) {
defer func() {
if err != nil {
Unmount(target)
_ = Unmount(target)
Copy link
Member

Choose a reason for hiding this comment

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

Should we log those ignored errors for visibility?

@Honny1 Honny1 force-pushed the fix-errcheck-1 branch 2 times, most recently from 5cc30cc to 2aca8e1 Compare July 4, 2024 12:13
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

drivers/aufs/aufs.go Outdated Show resolved Hide resolved
drivers/aufs/aufs.go Outdated Show resolved Hide resolved
drivers/overlay/overlay.go Outdated Show resolved Hide resolved
drivers/overlay/overlay.go Outdated Show resolved Hide resolved
drivers/overlay/overlay.go Outdated Show resolved Hide resolved
drivers/zfs/zfs.go Outdated Show resolved Hide resolved
pkg/archive/archive_linux_test.go Outdated Show resolved Hide resolved
@Honny1 Honny1 force-pushed the fix-errcheck-1 branch 2 times, most recently from 7269394 to 73ea00e Compare July 9, 2024 12:30
@Honny1 Honny1 requested a review from mtrmac July 9, 2024 13:07
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-ci openshift-ci bot added the lgtm label Jul 9, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e2e98d8 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.

4 participants