simply replace duplicate class references with classRef() in Fabric.qll

This commit is contained in:
am0o0
2024-05-14 09:51:47 +02:00
parent 37d33186e5
commit c7adb32bc4

View File

@@ -163,11 +163,7 @@ module FabricV2 {
*/
private class FabricConnectionProxyCommand extends SystemCommandExecution::Range, API::CallNode {
FabricConnectionProxyCommand() {
this =
[
fabric().getMember("Connection"), connection().getMember("Connection"),
ModelOutput::getATypeNode("fabric.connection.Connection~Subclass").getASubclass*()
].getACall() and
this = Fabric::Connection::ConnectionClass::classRef().getACall() and
// we want to make sure that the connection is established otherwise the command of proxy_command won't run.
exists(
this.getAMethodCall([