diff options
author | Brent Baude <bbaude@redhat.com> | 2020-08-03 13:58:41 -0500 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-08-11 12:15:24 +0200 |
commit | 2ff8f485ea640b03a322df0f49ed79af92aa1f0b (patch) | |
tree | f1cc58743d4a228cf8ab9e6da10f75c9a9cd140d /pkg | |
parent | 5301d40e81c5a0758a3c8302b037854629317d43 (diff) | |
download | podman-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.go | 1 |
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 |