Skip to content

Commit 5d86e4a

Browse files
authored
Merge pull request moby#40670 from thaJeztah/fix_linting
fix linting in pkg/mount
2 parents 470d32d + 6c0eb9e commit 5d86e4a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/mount/mount.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ func RecursiveUnmount(target string) error {
140140
if err != nil {
141141
if i == len(mounts)-1 { // last mount
142142
return err
143-
} else {
144-
// This is some submount, we can ignore this error for now, the final unmount will fail if this is a real problem
145-
logrus.WithError(err).Warnf("Failed to unmount submount %s", m.Mountpoint)
146143
}
144+
// This is some submount, we can ignore this error for now, the final unmount will fail if this is a real problem
145+
logrus.WithError(err).Warnf("Failed to unmount submount %s", m.Mountpoint)
147146
}
148147

149148
logrus.Debugf("Unmounted %s", m.Mountpoint)

0 commit comments

Comments
 (0)