diff --git a/models/issue_assignees.go b/models/issue_assignees.go index f4aa250ddcb51..150740df590dc 100644 --- a/models/issue_assignees.go +++ b/models/issue_assignees.go @@ -183,7 +183,7 @@ func MakeIDsFromAPIAssigneesToAdd(oneAssignee string, multipleAssignees []string } //if assignee is empty skip - if len(assignee) == 0 { + if assignee == "" { continue } requestAssignees = append(requestAssignees, assignee)