mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
259b71c042
Using strings.HasPrefix with strings.TrimPrefix results in doing the same thing (checking if prefix exists) twice. In this case, using strings.TrimPrefix right away is sufficient. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>