We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 470d32d + 6c0eb9e commit 5d86e4aCopy full SHA for 5d86e4a
1 file changed
pkg/mount/mount.go
@@ -140,10 +140,9 @@ func RecursiveUnmount(target string) error {
140
if err != nil {
141
if i == len(mounts)-1 { // last mount
142
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)
146
}
+ // This is some submount, we can ignore this error for now, the final unmount will fail if this is a real problem
+ logrus.WithError(err).Warnf("Failed to unmount submount %s", m.Mountpoint)
147
148
149
logrus.Debugf("Unmounted %s", m.Mountpoint)
0 commit comments