Skip to content

Commit

Permalink
fix: fix static check failures
Browse files Browse the repository at this point in the history
  • Loading branch information
voidint committed Nov 28, 2023
1 parent 04bafe2 commit 196f870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/aliyun/aliyun_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestNewCollector(t *testing.T) {
rr2.WriteHeader(http.StatusOK)
htmlData, err := os.ReadFile("./testdata/golang_dl.html")
assert.Nil(t, err)
rr2.Write(htmlData)
_, _ = rr2.Write(htmlData)

patches := gomonkey.ApplyMethodSeq(&http.Client{}, "Get", []gomonkey.OutputCell{
{Values: gomonkey.Params{nil, errors.New("unknown error")}},
Expand Down
2 changes: 1 addition & 1 deletion collector/official/official_collector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func TestNewCollector(t *testing.T) {
rr2.WriteHeader(http.StatusOK)
htmlData, err := os.ReadFile("./testdata/golang_dl_with_rc.html")
assert.Nil(t, err)
rr2.Write(htmlData)
_, _ = rr2.Write(htmlData)

patches := gomonkey.ApplyMethodSeq(&http.Client{}, "Get", []gomonkey.OutputCell{
{Values: gomonkey.Params{nil, errors.New("unknown error")}},
Expand Down

0 comments on commit 196f870

Please sign in to comment.