💩👌 make lint happy

This commit is contained in:
fumiama 2021-08-06 20:02:26 +08:00
parent 26f51dae86
commit 70a970679f
3 changed files with 5 additions and 4 deletions

View File

@ -16,13 +16,13 @@ jobs:
# working-directory: somedir # working-directory: somedir
# Optional: golangci-lint command line arguments. # Optional: golangci-lint command line arguments.
args: -e nolintlint # args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`. # Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true # only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go. # Optional: if set to true then the action will use pre-installed Go.
skip-go-installation: true # skip-go-installation: true
# Optional: if set to true then the action don't cache or restore ~/go/pkg. # Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true # skip-pkg-cache: true

View File

@ -14,7 +14,7 @@ const (
var ( var (
compo Composition compo Composition
// 小作文数组 // Array 小作文数组
Array []string Array []string
) )

View File

@ -91,7 +91,8 @@ func netGet(dest string, header http.Header) ([]byte, error) {
} }
if code := resp.StatusCode; code != 200 { if code := resp.StatusCode; code != 200 {
// 如果返回不是200则立刻抛出错误 // 如果返回不是200则立刻抛出错误
return nil, errors.New(fmt.Sprintf("code %d", code)) errmsg := fmt.Sprintf("code %d", code)
return nil, errors.New(errmsg)
} }
return body, nil return body, nil
} }