summaryrefslogtreecommitdiffstats
path: root/services/pull/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/pull.go')
-rw-r--r--services/pull/pull.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/services/pull/pull.go b/services/pull/pull.go
index 5e76fac815..8ef7499ad5 100644
--- a/services/pull/pull.go
+++ b/services/pull/pull.go
@@ -152,14 +152,12 @@ func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *iss
if issue.Milestone != nil {
notify_service.IssueChangeMilestone(ctx, issue.Poster, issue, 0)
}
- if len(assigneeIDs) > 0 {
- for _, assigneeID := range assigneeIDs {
- assignee, err := user_model.GetUserByID(ctx, assigneeID)
- if err != nil {
- return ErrDependenciesLeft
- }
- notify_service.IssueChangeAssignee(ctx, issue.Poster, issue, assignee, false, assigneeCommentMap[assigneeID])
+ for _, assigneeID := range assigneeIDs {
+ assignee, err := user_model.GetUserByID(ctx, assigneeID)
+ if err != nil {
+ return ErrDependenciesLeft
}
+ notify_service.IssueChangeAssignee(ctx, issue.Poster, issue, assignee, false, assigneeCommentMap[assigneeID])
}
return nil