mirror of
https://github.com/docker/cli.git
synced 2026-09-05 02:24:31 -05:00
Previously, its other return value was used even when it returned an error. This is awkward and goes against the convention. It also could have resulted in a nil pointer dereference when an error was returned because of an unknown pool type. This changes the unknown pool type error to a panic (since the pool types are hardcoded at call sites and must always be "push" or "pull"), and returns a "found" boolean instead of an error. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: 80513d85cfc0e46f8202fc3030f11052bbfeea7a Component: engine