1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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; 5bd02b8a86

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-03-11 18:45:50 +01:00
parent 8bbba72499
commit 6c0eb9e849
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -140,10 +140,9 @@ 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)
}
// 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)