various cleanups to address linter issues

Signed-off-by: Dominik Süß <dominik@suess.wtf>
This commit is contained in:
Dominik Süß
2018-10-13 21:14:03 +02:00
parent 398f670bcb
commit 0b412e9482
16 changed files with 23 additions and 78 deletions
+1 -4
View File
@@ -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