mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
8db6ffbeef
This simplifies the code flow and basically removes the last filepath.Clean, which is not necessary in either case: - for absolute path, single filepath.Clean is enough (as it is guaranteed to remove all dot and dot-dot elements); - for relative path, filepath.Rel calls Clean at the end (which is even documented). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>