fix: lint
This commit is contained in:
parent
ebfb3f9aaa
commit
ad0690369f
@ -300,7 +300,7 @@ func (s *SendTaskDeletedNotification) Handle(msg *message.Message) (err error) {
|
|||||||
|
|
||||||
var subscribers []*Subscription
|
var subscribers []*Subscription
|
||||||
subscribers, err = getSubscribersForEntity(sess, SubscriptionEntityTask, event.Task.ID)
|
subscribers, err = getSubscribersForEntity(sess, SubscriptionEntityTask, event.Task.ID)
|
||||||
// If the task does not exist and no one has explicitely subscribed to it, we won't find any subscriptions for it.
|
// If the task does not exist and no one has explicitly subscribed to it, we won't find any subscriptions for it.
|
||||||
// Hence, we need to check for subscriptions to the parent project manually.
|
// Hence, we need to check for subscriptions to the parent project manually.
|
||||||
if err != nil && (IsErrTaskDoesNotExist(err) || IsErrProjectDoesNotExist(err)) {
|
if err != nil && (IsErrTaskDoesNotExist(err) || IsErrProjectDoesNotExist(err)) {
|
||||||
subscribers, err = getSubscribersForEntity(sess, SubscriptionEntityProject, event.Task.ProjectID)
|
subscribers, err = getSubscribersForEntity(sess, SubscriptionEntityProject, event.Task.ProjectID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user