Skip to content

Commit

Permalink
Fix errcheck: error return value of aufs.Unmount is not checked
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Rodák <[email protected]>
  • Loading branch information
Honny1 committed Jul 3, 2024
1 parent 99cd54a commit 848a221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/aufs/aufs.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,11 @@ func (a *Driver) Cleanup() error {
}

func (a *Driver) aufsMount(ro []string, rw, target string, options graphdriver.MountOpts) (err error) {
defer func() {
defer func() error {
if err != nil {
Unmount(target)
err = Unmount(target)
}
return err
}()

// Mount options are clipped to page size(4096 bytes). If there are more
Expand Down

0 comments on commit 848a221

Please sign in to comment.