aboutsummaryrefslogtreecommitdiffstats
path: root/models/issues/assignees.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues/assignees.go')
-rw-r--r--models/issues/assignees.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/assignees.go b/models/issues/assignees.go
index 5921112fea..7f589f5d7e 100644
--- a/models/issues/assignees.go
+++ b/models/issues/assignees.go
@@ -42,7 +42,7 @@ func (issue *Issue) LoadAssignees(ctx context.Context) (err error) {
if len(issue.Assignees) > 0 {
issue.Assignee = issue.Assignees[0]
}
- return
+ return err
}
// GetAssigneeIDsByIssue returns the IDs of users assigned to an issue
@@ -167,5 +167,5 @@ func MakeIDsFromAPIAssigneesToAdd(oneAssignee string, multipleAssignees []string
// Get the IDs of all assignees
assigneeIDs, err = user_model.GetUserIDsByNames(requestAssignees, false)
- return
+ return assigneeIDs, err
}