diff --git a/mount/mount_unix.go b/mount/mount_unix.go index 677b8c3b..b64e23ed 100644 --- a/mount/mount_unix.go +++ b/mount/mount_unix.go @@ -23,7 +23,7 @@ func Mount(device, target, mType, options string) error { // a normal unmount. If target is not a mount point, no error is returned. func Unmount(target string) error { err := unix.Unmount(target, mntDetach) - if err == nil || err == unix.EINVAL { //nolint:errorlint // unix errors are bare + if err == nil || err == unix.EINVAL { // Ignore "not mounted" error here. Note the same error // can be returned if flags are invalid, so this code // assumes that the flags value is always correct.