Skip to content

Commit

Permalink
testgrid-analysis: tab is unused & remove
Browse files Browse the repository at this point in the history
Signed-off-by: tico88612 <17496418+tico88612@users.noreply.github.com>
  • Loading branch information
tico88612 committed Apr 26, 2024
1 parent 5559f3f commit 3e76f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testgrid-analysis/cmd/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
func createIssues(tests []*TestResultSummary, labels []string) {
openIssues := getOpenIssues(labels)
for _, t := range tests {
createIssueIfNonExist(tab, t, openIssues, append(labels, "help wanted"))
createIssueIfNonExist(t, openIssues, append(labels, "help wanted"))
}
}

Expand Down Expand Up @@ -54,7 +54,7 @@ func getOpenIssues(labels []string) []*github.Issue {
return allIssues
}

func createIssueIfNonExist(tab string, t *TestResultSummary, issues []*github.Issue, labels []string) {
func createIssueIfNonExist(t *TestResultSummary, issues []*github.Issue, labels []string) {
// check if there is already an open issue regarding this test
for _, issue := range issues {
if strings.Contains(*issue.Title, t.Name) {
Expand Down

0 comments on commit 3e76f61

Please sign in to comment.