Skip to content

Commit 4eb8839

Browse files
committed
ext/iconv: Use RETURN_BOOL() instead of if/else
1 parent e1686aa commit 4eb8839

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/iconv/iconv.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -2255,11 +2255,7 @@ PHP_FUNCTION(iconv_set_encoding)
22552255
retval = zend_alter_ini_entry(name, charset, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
22562256
zend_string_release_ex(name, 0);
22572257

2258-
if (retval == SUCCESS) {
2259-
RETURN_TRUE;
2260-
} else {
2261-
RETURN_FALSE;
2262-
}
2258+
RETURN_BOOL(retval == SUCCESS);
22632259
}
22642260
/* }}} */
22652261

0 commit comments

Comments
 (0)