From 6ff70bd77b9e945515bcf7fe426ac5ce07bed32b Mon Sep 17 00:00:00 2001 From: kekskurse Date: Thu, 10 Mar 2022 19:42:57 +0100 Subject: [PATCH] #1 fix version check --- internal/pkg/checks/version.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pkg/checks/version.go b/internal/pkg/checks/version.go index 8204c38..cbdd812 100644 --- a/internal/pkg/checks/version.go +++ b/internal/pkg/checks/version.go @@ -21,6 +21,7 @@ func (h Version) Execute() (ok bool, data interface{}, err error) { return true, nil, nil } resp, err := http.Get("https://git.keks.cloud/api/v1/repos/kekskurse/http-server-status/releases?limit=1") + defer resp.Body.Close() var g []struct { TagName string `json:"tag_name"`