From ab77487814e6af81fe0d2dfac1a1f1b98c6ef325 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Mon, 3 Aug 2020 13:58:41 -0500 Subject: 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 --- pkg/api/handlers/libpod/containers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/api') diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go index 864775fe4..47ea6c40d 100644 --- a/pkg/api/handlers/libpod/containers.go +++ b/pkg/api/handlers/libpod/containers.go @@ -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 -- cgit v1.2.3-54-g00ecf