From 7db8085e0391fa3188fc84bea85b3c6e14bad12f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 14 Aug 2020 02:17:13 -0600 Subject: [PATCH] add missing return --- cmd/mgmt/route.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mgmt/route.go b/cmd/mgmt/route.go index b2e332a..447ab65 100644 --- a/cmd/mgmt/route.go +++ b/cmd/mgmt/route.go @@ -167,6 +167,7 @@ func routeAll() chi.Router { log.Printf("/api/register-device/\n") log.Println(err) http.Error(w, msg, http.StatusNotFound) + return } if "" != original.MachinePPID { msg := `{"error":"the presented key has already been used"}`