fix: fix linting
Some checks failed
CI / lint (push) Failing after 3m58s
CI / release (push) Successful in 6m30s

This commit is contained in:
Marcel S. Henselin 2026-04-17 17:27:40 +02:00
parent c1349c7e40
commit 45a4a7e647
3 changed files with 3 additions and 12 deletions

10
main.go
View file

@ -4,8 +4,6 @@ import (
"bytes"
_ "embed"
"fmt"
"io"
"log"
"net/http"
"os"
"text/template"
@ -83,12 +81,8 @@ func main() {
githubactions.Fatalf("error %s", err.Error())
os.Exit(1)
}
defer func(Body io.ReadCloser) {
err := Body.Close()
if err != nil {
log.Fatalln(err)
}
}(resp.Body)
defer resp.Body.Close() //nolint:gocritic
fmt.Println("response Status:", resp.Status)
if resp.StatusCode != http.StatusOK {
githubactions.Infof("json: %s", jsonStr)