mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Use if statement instead of manual disjuction
This commit is contained in:
@@ -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))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user