summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-08-03 13:58:41 -0500
committerBrent Baude <bbaude@redhat.com>2020-08-03 13:58:41 -0500
commitab77487814e6af81fe0d2dfac1a1f1b98c6ef325 (patch)
tree184637abc118ea2f09a23bea9b3f13e3960f10e0 /pkg/api
parent1709335cf04e947117d4ae4dca72f24f4095511b (diff)
downloadpodman-ab77487814e6af81fe0d2dfac1a1f1b98c6ef325.tar.gz
podman-ab77487814e6af81fe0d2dfac1a1f1b98c6ef325.tar.bz2
podman-ab77487814e6af81fe0d2dfac1a1f1b98c6ef325.zip
Missing return after early exit
the exists code was plagued by a missing return statement meant to trigger an early exit. Fixes: #7197 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/libpod/containers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go
index 864775fe4..47ea6c40d 100644
--- a/pkg/api/handlers/libpod/containers.go
+++ b/pkg/api/handlers/libpod/containers.go
@@ -24,6 +24,7 @@ func ContainerExists(w http.ResponseWriter, r *http.Request) {
if err != nil {
if errors.Cause(err) == define.ErrNoSuchCtr {
utils.ContainerNotFound(w, name, err)
+ return
}
utils.InternalServerError(w, err)
return