Skip to content

Commit e0a82b5

Browse files
committed
ext/opcache: use RETURN_BOOL() instead of if/else
1 parent 20a44af commit e0a82b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -946,11 +946,7 @@ ZEND_FUNCTION(opcache_invalidate)
946946
RETURN_FALSE;
947947
}
948948

949-
if (zend_accel_invalidate(script_name, force) == SUCCESS) {
950-
RETURN_TRUE;
951-
} else {
952-
RETURN_FALSE;
953-
}
949+
RETURN_BOOL(zend_accel_invalidate(script_name, force) == SUCCESS);
954950
}
955951

956952
/* {{{ Prevents JIT on function. Call it before the first invocation of the given function. */

0 commit comments

Comments
 (0)