Skip to content

Commit dda9bbc

Browse files
committed
ext/xls: Replace RETVAL_TRUE/RETVAL_FALSE with RETVAL_BOOL
1 parent 93bbb46 commit dda9bbc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/xsl/xsltprocessor.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,7 @@ PHP_METHOD(XSLTProcessor, removeParameter)
703703
RETURN_THROWS();
704704
}
705705
intern = Z_XSL_P(id);
706-
if (zend_hash_del(intern->parameter, key) == SUCCESS) {
707-
RETVAL_TRUE;
708-
} else {
709-
RETVAL_FALSE;
710-
}
706+
RETVAL_BOOL(zend_hash_del(intern->parameter, key) == SUCCESS);
711707
zend_string_release_ex(key, false);
712708
}
713709
/* }}} end XSLTProcessor::removeParameter */

0 commit comments

Comments
 (0)