Skip to content

Commit

Permalink
fix: typo in tree check
Browse files Browse the repository at this point in the history
Fix typo and add missing RuleRace in isLogicRule
  • Loading branch information
maticzav authored Jun 12, 2020
2 parents 27880cd + bf29135 commit 04cf1a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export function isLogicRule(x: any): x is ILogicRule {
(x.constructor.name === 'RuleOr' ||
x.constructor.name === 'RuleAnd' ||
x.constructor.name === 'RuleChain' ||
x.constructor.name === 'RuleNoe' ||
x.constructor.name === 'RuleRace' ||
x.constructor.name === 'RuleNot' ||
x.constructor.name === 'RuleTrue' ||
x.constructor.name === 'RuleFalse'))
)
Expand Down

0 comments on commit 04cf1a1

Please sign in to comment.