Skip to content

Commit

Permalink
Fix the unique validator for the systhesis rules (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoloa authored Sep 9, 2024
1 parent a7b8af6 commit 952f490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/tools/validate_relationship_synthesis_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const githubHelper = require('./ghHelper');

let ALL_RELATIONSHIP_SYNTHESIS;
function validateAndRecord (rule) {
if (rule.name in ALL_RELATIONSHIP_SYNTHESIS) {
if (ALL_RELATIONSHIP_SYNTHESIS.has(rule.name)) {
throw new Error('There already exists a rule with name ' + rule.name);
}
ALL_RELATIONSHIP_SYNTHESIS.set(rule.name, rule);
Expand Down

0 comments on commit 952f490

Please sign in to comment.