Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
review: consolidate conditionals
  • Loading branch information
bduranleau-nr committed Jan 23, 2025
commit aebfeebf39718d891d7e03abb7e8672c4ca05efd
4 changes: 1 addition & 3 deletions agent/fw_drupal8.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
* Symfony\Component\HttpFoundation\Response if there is a cache hit and false
* otherwise.
*/
if (retval_ptr && nr_php_is_zval_valid_object(*retval_ptr)) {

Check failure

Code scanning / CodeQL

Redundant null check due to previous dereference High

This null check is redundant because
the value is dereferenced
in any case.
This null check is redundant because
the value is dereferenced
in any case.
nr_txn_set_path("Drupal8", NRPRG(txn), name, NR_PATH_TYPE_ACTION,
NR_OK_TO_OVERWRITE);
}
Expand Down Expand Up @@ -808,9 +808,7 @@
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) {
Expand Down
Loading