diff --git a/internal/pkg/externalplugins/cherrypicker/cherrypicker_test.go b/internal/pkg/externalplugins/cherrypicker/cherrypicker_test.go index 40c37c1b..d819372f 100644 --- a/internal/pkg/externalplugins/cherrypicker/cherrypicker_test.go +++ b/internal/pkg/externalplugins/cherrypicker/cherrypicker_test.go @@ -297,7 +297,7 @@ func (f *fghc) ListOrgMembers(_, role string) ([]github.TeamMember, error) { return f.orgMembers, nil } -func (f *fghc) CreateFork(org, repo string) (string, error) { +func (f *fghc) CreateFork(_, repo string) (string, error) { return repo, nil } diff --git a/internal/pkg/externalplugins/labelblocker/labelblocker_test.go b/internal/pkg/externalplugins/labelblocker/labelblocker_test.go index f90f0fcb..0b569d8c 100644 --- a/internal/pkg/externalplugins/labelblocker/labelblocker_test.go +++ b/internal/pkg/externalplugins/labelblocker/labelblocker_test.go @@ -79,7 +79,7 @@ func (f *fghc) RemoveLabel(owner, repo string, number int, label string) error { } // ListTeams return a list of fake teams that correspond to the fake team members returned by ListTeamAllMembers -func (f *fghc) ListTeams(org string) ([]github.Team, error) { +func (f *fghc) ListTeams(_ string) ([]github.Team, error) { f.lock.RLock() defer f.lock.RUnlock() return []github.Team{ @@ -120,8 +120,7 @@ func (f *fghc) CreateComment(owner, repo string, number int, comment string) err return nil } -func (f *fghc) QueryWithGitHubAppsSupport( - _ context.Context, q interface{}, vars map[string]interface{}, _ string) error { +func (f *fghc) QueryWithGitHubAppsSupport(_ context.Context, q interface{}, _ map[string]interface{}, _ string) error { sq, ok := q.(*lib.TeamMembersQuery) if !ok { return errors.New("unexpected query type") diff --git a/internal/pkg/externalplugins/lgtm/lgtm_test.go b/internal/pkg/externalplugins/lgtm/lgtm_test.go index 80e16aee..1d83bce9 100644 --- a/internal/pkg/externalplugins/lgtm/lgtm_test.go +++ b/internal/pkg/externalplugins/lgtm/lgtm_test.go @@ -139,7 +139,7 @@ func (f *fakeGithubClient) CreateComment(owner, repo string, number int, comment } // EditComment edits a comment. Its a stub that does nothing. -func (f *fakeGithubClient) EditComment(org, repo string, id int, comment string) error { +func (f *fakeGithubClient) EditComment(_, _ string, id int, comment string) error { f.lock.Lock() defer f.lock.Unlock() for num, ics := range f.IssueComments {