From c0b9f5607bc01e985dbffede053e946bfb1585e7 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Fri, 2 Oct 2020 14:05:09 -0700 Subject: [PATCH] Add missing return in error branch. --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index ff5d320..239d1b6 100644 --- a/handlers.go +++ b/handlers.go @@ -160,6 +160,7 @@ func BridgeState(w http.ResponseWriter, r *http.Request) { if err != nil { log.Printf("Bug: %s", err) http.Error(w, "failed to marshal test tesult", http.StatusInternalServerError) + return } SendJSONResponse(w, string(jsonResult)) } -- GitLab