From aebfeebf39718d891d7e03abb7e8672c4ca05efd Mon Sep 17 00:00:00 2001 From: Brian Duranleau Date: Thu, 23 Jan 2025 15:52:29 -0600 Subject: [PATCH] review: consolidate conditionals --- agent/fw_drupal8.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/agent/fw_drupal8.c b/agent/fw_drupal8.c index 3b1a5f340..b27ae735d 100644 --- a/agent/fw_drupal8.c +++ b/agent/fw_drupal8.c @@ -808,9 +808,7 @@ void nr_drupal8_enable(TSRMLS_D) { if (NULL == drupal_ce) { inject = false; nrl_warning(NRL_FRAMEWORK, "Missing Drupal RouteMatch Class"); - } - - if (inject) { + } else { symfony_ce = nr_php_find_class("Symfony\\Component\\HttpFoundation\\Request"); if (NULL == symfony_ce) {