mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
💩👌 make lint happy
This commit is contained in:
parent
26f51dae86
commit
70a970679f
4
.github/workflows/suggester.yml
vendored
4
.github/workflows/suggester.yml
vendored
@ -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
|
||||||
|
|||||||
@ -14,7 +14,7 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
compo Composition
|
compo Composition
|
||||||
// 小作文数组
|
// Array 小作文数组
|
||||||
Array []string
|
Array []string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user