Skip to content

Commit

Permalink
lint: Fix unused-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jul 13, 2024
1 parent 229017a commit 76a29b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestClient_GetEvents(t *testing.T) {
defer httpmock.DeactivateAndReset()

httpmock.RegisterResponder("GET", "https://api.doorkeeper.jp/events?page=1",
func(req *http.Request) (*http.Response, error) {
func(_ *http.Request) (*http.Response, error) {
resp := httpmock.NewStringResponse(200, readTestData(filepath.Join("testdata", "events.json")))
resp.Header.Set("X-Ratelimit", `{"name":"authenticated API","period":300,"limit":300,"remaining":299,"until":"2019-07-29T15:15:00Z"}`)
return resp, nil
Expand Down Expand Up @@ -83,7 +83,7 @@ func TestClient_GetGroupEvents(t *testing.T) {
defer httpmock.DeactivateAndReset()

httpmock.RegisterResponder("GET", "https://api.doorkeeper.jp/groups/trbmeetup/events?page=1",
func(req *http.Request) (*http.Response, error) {
func(_ *http.Request) (*http.Response, error) {
resp := httpmock.NewStringResponse(200, readTestData(filepath.Join("testdata", "events.json")))
resp.Header.Set("X-Ratelimit", `{"name":"authenticated API","period":300,"limit":300,"remaining":299,"until":"2019-07-29T15:15:00Z"}`)
return resp, nil
Expand Down Expand Up @@ -131,7 +131,7 @@ func TestClient_GetEvent(t *testing.T) {
defer httpmock.DeactivateAndReset()

httpmock.RegisterResponder("GET", "https://api.doorkeeper.jp/events/28319",
func(req *http.Request) (*http.Response, error) {
func(_ *http.Request) (*http.Response, error) {
resp := httpmock.NewStringResponse(200, readTestData(filepath.Join("testdata", "event-ja.json")))
resp.Header.Set("X-Ratelimit", `{"name":"authenticated API","period":300,"limit":300,"remaining":299,"until":"2019-07-29T15:15:00Z"}`)
return resp, nil
Expand Down

0 comments on commit 76a29b3

Please sign in to comment.