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