diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-02 09:28:45 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-02 09:31:44 +0100 |
commit | e8e0539b454d622c1c428d03ac9c6f40d2654600 (patch) | |
tree | 3489dde790d31a7a249e2326bbdd97fae5beec3d | |
parent | e6cfccdd40397b95dcf3de0ea9b484feea954fc2 (diff) | |
download | gitea-e8e0539b454d622c1c428d03ac9c6f40d2654600.tar.gz gitea-e8e0539b454d622c1c428d03ac9c6f40d2654600.zip |
Linting
-rw-r--r-- | models/issue_label.go | 2 | ||||
-rw-r--r-- | 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 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. |