aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-08-03 13:58:41 -0500
committerValentin Rothberg <rothberg@redhat.com>2020-08-11 12:15:24 +0200
commit2ff8f485ea640b03a322df0f49ed79af92aa1f0b (patch)
treef1cc58743d4a228cf8ab9e6da10f75c9a9cd140d /pkg
parent5301d40e81c5a0758a3c8302b037854629317d43 (diff)
downloadpodman-2ff8f485ea640b03a322df0f49ed79af92aa1f0b.tar.gz
podman-2ff8f485ea640b03a322df0f49ed79af92aa1f0b.tar.bz2
podman-2ff8f485ea640b03a322df0f49ed79af92aa1f0b.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')
-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 21904e21f..2303ff17a 100644
--- a/pkg/api/handlers/libpod/containers.go
+++ b/pkg/api/handlers/libpod/containers.go
@@ -23,6 +23,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