Skip to content

Commit db7abb4

Browse files
committed
C#: Remove unneeded exists.
1 parent 6be41b0 commit db7abb4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

csharp/ql/src/Telemetry/ExternalApi.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ class ExternalApi extends DataFlowDispatch::DataFlowCallable {
6060

6161
/** Gets a call to this API callable. */
6262
DispatchCall getACall() {
63-
exists(DataFlowDispatch::NonDelegateDataFlowCall call | call.getDispatchCall() = result |
64-
this = result.getADynamicTarget().getUnboundDeclaration()
65-
or
66-
this = result.getAStaticTarget().getUnboundDeclaration()
67-
)
63+
this = result.getADynamicTarget().getUnboundDeclaration()
64+
or
65+
this = result.getAStaticTarget().getUnboundDeclaration()
6866
}
6967

7068
/** Gets a node that is an input to a call to this API. */

0 commit comments

Comments
 (0)