mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #2619 from thaJeztah/nil_return
setFreezer: explicitly return nil
This commit is contained in:
@@ -19,7 +19,7 @@ func setFreezer(dirPath string, state configs.FreezerState) error {
|
||||
// freeze the container (since without the freezer cgroup, that's a
|
||||
// no-op).
|
||||
if state == configs.Undefined || state == configs.Thawed {
|
||||
err = nil
|
||||
return nil
|
||||
}
|
||||
return errors.Wrap(err, "freezer not supported")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user