Skip to content

Commit

Permalink
try to debug ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly committed Nov 22, 2023
1 parent a715981 commit 94bdea0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/config/src/utils/compositeRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ export function initialize(config: SigynConfig): SigynInitializedCompositeRule[]
throw new Error(`Composite rule ${compositeRule.name} require at least 2 matching rules`);
}

if (compositeRules.filter((rule) => isDeepStrictEqual(rule.rules, compositeRule.rules)).length > 1) {
throw new Error("Found multiple composite rules wich scope the same rules");
try {
if (compositeRules.filter((rule) => isDeepStrictEqual(rule.rules, compositeRule.rules)).length > 1) {
throw new Error("Found multiple composite rules wich scope the same rules");
}
}
catch (e) {
console.log(e);
throw e;
}

const ruleCount = compositeRule.rules.length;
Expand Down

0 comments on commit 94bdea0

Please sign in to comment.