mirror of
https://github.com/containerd/containerd.git
synced 2026-07-13 02:53:18 +00:00
This avoids someone adding a new error path and forgetting to call the cleanup function. We prefer to use an explicit flag to gate the clean rather than relying on `err != nil` so we don't have to rely on people never accidentally shadowing the `err` as seen by the closure. Signed-off-by: Ian Campbell <ian.campbell@docker.com>