Merge pull request #2619 from thaJeztah/nil_return

setFreezer: explicitly return nil
This commit is contained in:
Kir Kolyshkin
2020-09-30 18:07:10 -07:00
committed by GitHub
+1 -1
View File
@@ -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")
}