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

View file

@ -26,7 +26,7 @@ inputs:
runs:
using: 'docker'
image: 'docker://stackit-solutions.git.onstackit.cloud/actions/notify-slim:v0.2.1'
image: 'docker://stackit-solutions.git.onstackit.cloud/actions/notify-slim:v0.1.2'
# image: 'Dockerfile'
args:
- ${{ inputs.project }}

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)

View file

@ -113,9 +113,6 @@ func Test_card(t *testing.T) {
t.Fatalf("error: %v\nsrc: %s", err, tt.want)
}
//if !reflect.DeepEqual(wantJson, gotJson) {
// t.Errorf("card() got = %v, want %v", gotJson, wantJson)
//}
if diff := cmp.Diff(wantJson, gotJson); diff != "" {
t.Errorf("MakeGatewayInfo() mismatch (-want +got):\n%s", diff)
}