Skip to content

Commit

Permalink
fix(core/cluster): Fix broken logic in task.matcher.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jun 7, 2018
1 parent dff579f commit 4b7a207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/cluster/task.matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class TaskMatcher {
firstStage.context['notification.type'] || firstStage.type || task.getValueFor('notification.type');

const matcher = notificationType && (matchers[notificationType] || matchers[notificationType.toLowerCase()]);
return matcher ? matchers[notificationType](task, serverGroup) : false;
return !!matcher && matcher(task, serverGroup);
}
}

Expand Down

0 comments on commit 4b7a207

Please sign in to comment.