summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-02 09:28:45 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-12-02 09:31:44 +0100
commite8e0539b454d622c1c428d03ac9c6f40d2654600 (patch)
tree3489dde790d31a7a249e2326bbdd97fae5beec3d
parente6cfccdd40397b95dcf3de0ea9b484feea954fc2 (diff)
downloadgitea-e8e0539b454d622c1c428d03ac9c6f40d2654600.tar.gz
gitea-e8e0539b454d622c1c428d03ac9c6f40d2654600.zip
Linting
-rw-r--r--models/issue_label.go2
-rw-r--r--routers/api/v1/repo/issue.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index ffdaa072c8..39805ba80d 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 8501334ade..908b5aeb96 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.