summaryrefslogtreecommitdiffstats
path: root/models/issue_label.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_label.go')
-rw-r--r--models/issue_label.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index ab6c4731ee..bf61fcaeca 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -134,7 +134,7 @@ func NewLabels(labels ...*Label) error {
// If pass repoID as 0, then ORM will ignore limitation of repository
// and can return arbitrary label with any valid ID.
func getLabelInRepoByName(e Engine, repoID int64, labelName string) (*Label, error) {
- if len(labelName) <= 0 {
+ if len(labelName) == 0 {
return nil, ErrLabelNotExist{0, repoID}
}