Skip to content

Commit b8dc1b3

Browse files
committed
JS: Remove redundant casts
1 parent fbafd6f commit b8dc1b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/internal/TypeResolution.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ module TypeResolution {
136136
target = cls.getConstructor().getBody()
137137
)
138138
or
139-
valueHasType(call.(InvokeExpr).getCallee(), trackFunctionValue(target))
139+
valueHasType(call.getCallee(), trackFunctionValue(target))
140140
or
141-
valueHasType(call.(InvokeExpr).getCallee(), trackFunctionType(target)) and
141+
valueHasType(call.getCallee(), trackFunctionType(target)) and
142142
(
143143
call instanceof NewExpr and
144144
target = any(ConstructorTypeExpr t).getFunction()
@@ -148,7 +148,7 @@ module TypeResolution {
148148
)
149149
or
150150
exists(InterfaceDefinition interface, CallSignature sig |
151-
valueHasType(call.(InvokeExpr).getCallee(), trackType(interface)) and
151+
valueHasType(call.getCallee(), trackType(interface)) and
152152
sig = interface.getACallSignature() and
153153
target = sig.getBody()
154154
|

0 commit comments

Comments
 (0)