fix linting in pkg/mount
We recently updated golangci-lint, which is checking for some
additional linting rules, causing a failure in code that was
just merged to master;
@@ -140,11 +140,10 @@ func RecursiveUnmount(target string) error {
if err != nil {
if i == len(mounts)-1 { // last mount
return err
- } else {
+ }
// 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)
}
- }
logrus.Debugf("Unmounted %s", m.Mountpoint)
}
