mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
bc9a7bda58
errors.Wrap(err, "some error") returns nil if err is nil, so it's slightly clearer to just return early than to set the error to nil and call errors.Wrap(). This is also somewhat defensive in case we decide to replace `errors.Wrap()` for golang's native `%w` wrapping. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>