mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
5d193188db
In case configs.Undefined or any wrong value is passed, there is no need to check whether the freezer is supported. Move arguments check to the beginning to avoid an unnecessary call to supportFreezer(). While at it, simplify the "whether to return an error if freezer is not supported" check. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>