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 <[email protected]>
  • Loading branch information
baude committed Aug 3, 2020
1 parent 1709335 commit ab77487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/handlers/libpod/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab77487

Please sign in to comment.