mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
remove redundant call, the charpred ensures it always holds
This commit is contained in:
@@ -78,12 +78,9 @@ class RegularMethodCall extends MethodCallImpl, TRegularMethodCall {
|
||||
}
|
||||
|
||||
final override string getMethodNameImpl() {
|
||||
isRegularMethodCall(g) and
|
||||
(
|
||||
result = "call" and not exists(g.getMethod())
|
||||
or
|
||||
result = g.getMethod().(Ruby::Token).getValue()
|
||||
)
|
||||
result = "call" and not exists(g.getMethod())
|
||||
or
|
||||
result = g.getMethod().(Ruby::Token).getValue()
|
||||
}
|
||||
|
||||
final override Expr getArgumentImpl(int n) { toGenerated(result) = g.getArguments().getChild(n) }
|
||||
|
||||
Reference in New Issue
Block a user