Skip to content

Commit e8e0539

Browse files
committed
Linting
1 parent e6cfccd commit e8e0539

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

models/issue_label.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func GetLabelByID(id int64) (*Label, error) {
149149
return getLabelInRepoByID(x, 0, id)
150150
}
151151

152-
// GetLabelInRepoByID returns a label by ID in given repository.
152+
// GetLabelInRepoByName returns a label by name in given repository.
153153
func GetLabelInRepoByName(repoID int64, labelName string) (*Label, error) {
154154
return getLabelInRepoByName(x, repoID, labelName)
155155
}

routers/api/v1/repo/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ func ListIssues(ctx *context.APIContext) {
3030
}
3131
if ctx.Query("state") == "all" {
3232
issueOpts.IsClosed = !issueOpts.IsClosed
33-
temp_issues, err := models.Issues(&issueOpts)
33+
tempIssues, err := models.Issues(&issueOpts)
3434
if err != nil {
3535
ctx.Error(500, "Issues", err)
3636
return
3737
}
38-
issues = append(issues, temp_issues...)
38+
issues = append(issues, tempIssues...)
3939
}
4040

4141
// FIXME: use IssueList to improve performance.

0 commit comments

Comments
 (0)