From e8e0539b454d622c1c428d03ac9c6f40d2654600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Fri, 2 Dec 2016 09:28:45 +0100 Subject: [PATCH] Linting --- models/issue_label.go | 2 +- routers/api/v1/repo/issue.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/issue_label.go b/models/issue_label.go index ffdaa072c..39805ba80 100644 --- a/models/issue_label.go +++ b/models/issue_label.go @@ -149,7 +149,7 @@ func GetLabelByID(id int64) (*Label, error) { return getLabelInRepoByID(x, 0, id) } -// GetLabelInRepoByID returns a label by ID in given repository. +// GetLabelInRepoByName returns a label by name in given repository. func GetLabelInRepoByName(repoID int64, labelName string) (*Label, error) { return getLabelInRepoByName(x, repoID, labelName) } diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 8501334ad..908b5aeb9 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -30,12 +30,12 @@ func ListIssues(ctx *context.APIContext) { } if ctx.Query("state") == "all" { issueOpts.IsClosed = !issueOpts.IsClosed - temp_issues, err := models.Issues(&issueOpts) + tempIssues, err := models.Issues(&issueOpts) if err != nil { ctx.Error(500, "Issues", err) return } - issues = append(issues, temp_issues...) + issues = append(issues, tempIssues...) } // FIXME: use IssueList to improve performance.