mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
various cleanups to address linter issues
Signed-off-by: Dominik Süß <dominik@suess.wtf>
This commit is contained in:
@@ -828,10 +828,7 @@ func remount(m *configs.Mount, rootfs string) error {
|
||||
if !strings.HasPrefix(dest, rootfs) {
|
||||
dest = filepath.Join(rootfs, dest)
|
||||
}
|
||||
if err := unix.Mount(m.Source, dest, m.Device, uintptr(m.Flags|unix.MS_REMOUNT), ""); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return unix.Mount(m.Source, dest, m.Device, uintptr(m.Flags|unix.MS_REMOUNT), "")
|
||||
}
|
||||
|
||||
// Do the mount operation followed by additional mounts required to take care
|
||||
|
||||
Reference in New Issue
Block a user