Use if statement instead of manual disjuction

This commit is contained in:
Sauyon Lee
2021-08-25 13:49:03 -07:00
parent 73d6177477
commit 1bd5eb5120

View File

@@ -236,11 +236,9 @@ class TestCase extends TTestCase {
or
exists(SummaryComponentStack s | s.tail() = stack |
// we currently only know the type if the stack is one level in
s = input and
result = SupportMethod::genMethodFor(this.getInputType(), s).getCall(this.getInput(s))
or
not s = input and
result = SupportMethod::genMethodForContent(s).getCall(this.getInput(s))
if s = input
then result = SupportMethod::genMethodFor(this.getInputType(), s).getCall(this.getInput(s))
else result = SupportMethod::genMethodForContent(s).getCall(this.getInput(s))
)
}