Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bkcsoft committed Dec 2, 2016
1 parent e6cfccd commit e8e0539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/issue_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e8e0539

Please sign in to comment.