mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
simply replace duplicate class references with classRef() in Fabric.qll
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user