mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 13:44:06 +01:00
Fix logging bug
Error logged everytime an assignee was removed
This commit is contained in:
parent
d76f34ef51
commit
076f940f1f
1 changed files with 5 additions and 7 deletions
|
@ -775,14 +775,12 @@ func (issue *Issue) ChangeAssignee(doer *User, assigneeID int64) (err error) {
|
||||||
} else {
|
} else {
|
||||||
apiPullRequest.Action = api.HookIssueAssigned
|
apiPullRequest.Action = api.HookIssueAssigned
|
||||||
}
|
}
|
||||||
err = PrepareWebhooks(issue.Repo, HookEventPullRequest, apiPullRequest)
|
if err := PrepareWebhooks(issue.Repo, HookEventPullRequest, apiPullRequest); err != nil {
|
||||||
}
|
|
||||||
if err != nil {
|
|
||||||
log.Error(4, "PrepareWebhooks [is_pull: %v, remove_assignee: %v]: %v", issue.IsPull, isRemoveAssignee, err)
|
log.Error(4, "PrepareWebhooks [is_pull: %v, remove_assignee: %v]: %v", issue.IsPull, isRemoveAssignee, err)
|
||||||
} else {
|
return nil
|
||||||
go HookQueue.Add(issue.RepoID)
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
go HookQueue.Add(issue.RepoID)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue