Skip to content

Commit

Permalink
Missing return after early exit
Browse files Browse the repository at this point in the history
the exists code was plagued by a missing return statement meant to trigger an early exit.

Fixes: containers#7197

Signed-off-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
baude authored and mheon committed Aug 17, 2020
1 parent d82ba78 commit dec3b92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/handlers/libpod/containers.go
Expand Up @@ -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
Expand Down

0 comments on commit dec3b92

Please sign in to comment.