Skip to content

Commit bb48b72

Browse files
committed
Revert accidental type change in CDS.qll
1 parent 90457ae commit bb48b72

File tree

1 file changed

+2
-3
lines changed
  • javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ class CdsServeCall extends DataFlow::CallNode {
6060

6161
Expr getServiceRepresentation() { result = serviceRepresentation }
6262

63-
ServiceInstance getServiceDefinition() {
63+
UserDefinedApplicationService getServiceDefinition() {
6464
/* 1. The argument to cds.serve is "all" */
6565
this.getServiceRepresentation().getStringValue() = "all" and
6666
result = any(UserDefinedApplicationService service)
6767
or
6868
/* 2. The argument to cds.serve is a name of the service */
69-
result.(UserDefinedApplicationService).getUnqualifiedName() =
70-
this.getServiceRepresentation().getStringValue()
69+
result.getUnqualifiedName() = this.getServiceRepresentation().getStringValue()
7170
or
7271
/* 3. The argument to cds.serve is a name by which the service is required */
7372
exists(RequiredService requiredService |

0 commit comments

Comments
 (0)