fix: fix linting
This commit is contained in:
parent
c1349c7e40
commit
45a4a7e647
3 changed files with 3 additions and 12 deletions
|
|
@ -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
10
main.go
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue