diff --git a/.github/workflows/suggester.yml b/.github/workflows/suggester.yml index ae7f8039..a0c6b202 100644 --- a/.github/workflows/suggester.yml +++ b/.github/workflows/suggester.yml @@ -16,13 +16,13 @@ jobs: # working-directory: somedir # 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`. # only-new-issues: true # 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. # skip-pkg-cache: true diff --git a/plugin_diana/data/text.go b/plugin_diana/data/text.go index 950a00a8..530b99e6 100644 --- a/plugin_diana/data/text.go +++ b/plugin_diana/data/text.go @@ -14,7 +14,7 @@ const ( var ( compo Composition - // 小作文数组 + // Array 小作文数组 Array []string ) diff --git a/plugin_github/repo_searcher.go b/plugin_github/repo_searcher.go index a119a8c8..036d2185 100644 --- a/plugin_github/repo_searcher.go +++ b/plugin_github/repo_searcher.go @@ -91,7 +91,8 @@ func netGet(dest string, header http.Header) ([]byte, error) { } if code := resp.StatusCode; code != 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 }