mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Simplify error handling on function return
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
@@ -224,9 +224,6 @@ other options are ignored.
|
||||
config.Cgroups.Resources.MemoryReservation = int64(*r.Memory.Reservation)
|
||||
config.Cgroups.Resources.MemorySwap = int64(*r.Memory.Swap)
|
||||
|
||||
if err := container.Set(config); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return container.Set(config)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user