Skip to content

Commit c7adb32

Browse files
committed
simply replace duplicate class references with classRef() in Fabric.qll
1 parent 37d3318 commit c7adb32

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

python/ql/lib/semmle/python/frameworks/Fabric.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,7 @@ module FabricV2 {
163163
*/
164164
private class FabricConnectionProxyCommand extends SystemCommandExecution::Range, API::CallNode {
165165
FabricConnectionProxyCommand() {
166-
this =
167-
[
168-
fabric().getMember("Connection"), connection().getMember("Connection"),
169-
ModelOutput::getATypeNode("fabric.connection.Connection~Subclass").getASubclass*()
170-
].getACall() and
166+
this = Fabric::Connection::ConnectionClass::classRef().getACall() and
171167
// we want to make sure that the connection is established otherwise the command of proxy_command won't run.
172168
exists(
173169
this.getAMethodCall([

0 commit comments

Comments
 (0)