Remove superfluous conjunct

This commit is contained in:
Chris Smowton
2021-07-14 12:42:28 +01:00
parent 1044049e72
commit e9390cb3eb

View File

@@ -353,14 +353,11 @@ class TestCase extends TTestCase {
* will return `newWithMapValue(newWithArrayElement(source()))`.
*/
string getInput(SummaryComponentStack stack) {
stack = input.drop(_) and
(
stack = input and result = "source()"
or
exists(SummaryComponentStack s |
result = "newWith" + contentToken(getContent(s.head())) + "(" + this.getInput(s) + ")" and
stack = s.tail()
)
stack = input and result = "source()"
or
exists(SummaryComponentStack s |
result = "newWith" + contentToken(getContent(s.head())) + "(" + this.getInput(s) + ")" and
stack = s.tail()
)
}