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 authored and vrothberg committed Aug 11, 2020
1 parent 5301d40 commit 2ff8f48
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 @@ -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 2ff8f48

Please sign in to comment.