From b61c11f1275bc442a66f6bd23fd8f9dc70e5991d Mon Sep 17 00:00:00 2001 From: asamonik <49288593+asamonik@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:29:17 +0200 Subject: [PATCH] pipeline fix Signed-off-by: asamonik <49288593+asamonik@users.noreply.github.com> --- keptn-gateway/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keptn-gateway/main.go b/keptn-gateway/main.go index dc7830af60..14d3b0387d 100644 --- a/keptn-gateway/main.go +++ b/keptn-gateway/main.go @@ -37,7 +37,11 @@ func handlerMetricsCount(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) returnval := fmt.Sprintf("%#v", len(l.Items)) - w.Write([]byte(returnval)) + + _, err = w.Write([]byte(returnval)) + if err != nil { + fmt.Println(err.Error()) + } } func main() {