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