Skip to content

Commit

Permalink
feat(core): Code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrg committed Nov 15, 2024
1 parent a5c3e6c commit 38d7607
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rulepilot",
"version": "1.4.3",
"version": "1.4.4",
"description": "Rule parsing engine for JSON rules",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 0 additions & 4 deletions src/services/introspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,12 @@ export class Introspector {
subRules = subRules.concat(this.#extractSubRules(condition));
}

console.log(JSON.stringify(subRules));

// We then create a new version of the rule without any of the sub-rules
const conditions: Condition[] = [];
for (let i = 0; i < rule.conditions.length; i++) {
conditions.push(this.#removeAllSubRules(rule.conditions[i]));
}

console.log(conditions);

subRules.forEach((rule) => {
if (!rule.parent) {
conditions.push(rule.subRule);
Expand Down

0 comments on commit 38d7607

Please sign in to comment.