Skip to content

Commit

Permalink
ci: fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Aug 6, 2024
1 parent 388007f commit f77ced4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/externalplugins/lgtm/lgtm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f77ced4

Please sign in to comment.