mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
dc907e8d11
We were checking if a unit is a slice two times. Consolidate those checks, and improve comments while we're at it. The code is the same in v1 and v2 but it's too complicated to factor it out, thus we just do the same changes in v1.go and v2.go. No functional change. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>