Skip to content

Commit

Permalink
Remove duplicate wrapper boilerplate/FW check
Browse files Browse the repository at this point in the history
  • Loading branch information
kneitinger committed Dec 1, 2020
1 parent 42b1293 commit 0437f85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/fw_lumen.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ NR_PHP_WRAPPER(nr_lumen_exception) {
(void)wraprec;

NR_PHP_WRAPPER_REQUIRE_FRAMEWORK(NR_FW_LUMEN);

#if ZEND_MODULE_API_NO >= ZEND_5_4_X_API_NO
const char* class_name = NULL;
const char* ignored = NULL;
Expand All @@ -155,10 +156,6 @@ NR_PHP_WRAPPER(nr_lumen_exception) {

char* name = NULL;

NR_UNUSED_SPECIALFN;
(void)wraprec;

NR_PHP_WRAPPER_REQUIRE_FRAMEWORK(NR_FW_LUMEN);

/*
* When the exception handler renders the response, name the transaction
Expand Down

0 comments on commit 0437f85

Please sign in to comment.