Skip to content

Commit

Permalink
Return without exiting the foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
caleballdrin committed Oct 22, 2024
1 parent 2075281 commit b7bf26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/services/validateRegistrant.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ angular
conference,
)
) {
return false;
return;

Check warning on line 96 in app/scripts/services/validateRegistrant.js

View check run for this annotation

Codecov / codecov/patch

app/scripts/services/validateRegistrant.js#L96

Added line #L96 was not covered by tests
}

if (rule.operator === '=' && answerValue === ruleValue) {
Expand Down

0 comments on commit b7bf26d

Please sign in to comment.