Skip to content

Commit

Permalink
Don't push mapping for no rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jun 25, 2018
1 parent cd165d3 commit 5cee7ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api-helper/machine/AbstractSoftwareDeliveryMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ export abstract class AbstractSoftwareDeliveryMachine<O extends SoftwareDelivery
public readonly configuration: O,
goalSetters: Array<GoalSetter | GoalSetter[]>) {
super();
this.pushMap = new PushRules("Goal setters", _.flatten(goalSetters));

// If we didn't get any goal setters don't register a mapping
if (goalSetters.length > 0) {
this.pushMap = new PushRules("Goal setters", _.flatten(goalSetters));
}
}

}

0 comments on commit 5cee7ba

Please sign in to comment.