Skip to content

Commit ed865fb

Browse files
committed
chore(automation): implement coderabbit suggestions
1 parent b4cbafb commit ed865fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/services/automations/service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,6 +2450,9 @@ func rulesUseCondition(rules []*models.Automation, field ConditionField) bool {
24502450
if ac.Move != nil && ConditionUsesField(ac.Move.Condition, field) {
24512451
return true
24522452
}
2453+
if ac.ExternalProgram != nil && ConditionUsesField(ac.ExternalProgram.Condition, field) {
2454+
return true
2455+
}
24532456
}
24542457
return false
24552458
}

0 commit comments

Comments
 (0)