Skip to content

Commit f53874a

Browse files
committed
fix assertion check in adjacency checker
1 parent ce086c4 commit f53874a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/scala/scripts/RedundantAdjacenciesChecker.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ object RedundantAdjacenciesChecker {
9191
case Some((rule, Rhd)) => isRedundantAdjacency(rule, lookupRuleRhd)
9292
case Some((rule, Lhd)) => isRedundantAdjacency(rule, lookupRuleLhd)
9393
case Some((rule, RhdAndLhd)) =>
94-
val b = isRedundantAdjacency(rule, lookupRuleLhd)
94+
val b = isRedundantAdjacency(rule, lookupRuleRhd)
9595
if (b != isRedundantAdjacency(rule, lookupRuleLhd)) {
96-
throw new AssertionError("Redundancies should be the same for RHD and LHD.") // hopefully this is always be the case
96+
throw new AssertionError("Redundancies should be the same for RHD and LHD.") // hopefully this will always be the case
9797
}
9898
b
9999
case None => false // comments are not redundant

0 commit comments

Comments
 (0)