Skip to content

Commit 6fd6b2a

Browse files
committed
Make definition of ImplMethodCallApplicationServiceDefinition more idiomatic
1 parent ac0265e commit 6fd6b2a

File tree

1 file changed

+1
-4
lines changed
  • javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap

1 file changed

+1
-4
lines changed

javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CDS.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,7 @@ class ImplMethodCallApplicationServiceDefinition extends MethodCallNode,
494494
UserDefinedApplicationService
495495
{
496496
ImplMethodCallApplicationServiceDefinition() {
497-
exists(CdsFacade cds |
498-
this.getReceiver() = cds.getMember("service").asSource() and
499-
this.getMethodName() = "impl"
500-
)
497+
exists(CdsFacade cds | this = cds.getMember("service").getMember("impl").getACall())
501498
}
502499

503500
override FunctionNode getInitFunction() { result = this.getArgument(0) }

0 commit comments

Comments
 (0)