Skip to content

Commit 369eeb7

Browse files
committed
ext/standard/file.c: Use RETURN_BOOL() instead of if-else
1 parent d4263dd commit 369eeb7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/standard/file.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,11 +1499,7 @@ PHP_FUNCTION(copy)
14991499

15001500
context = php_stream_context_from_zval(zcontext, 0);
15011501

1502-
if (php_copy_file_ctx(source, target, 0, context) == SUCCESS) {
1503-
RETURN_TRUE;
1504-
} else {
1505-
RETURN_FALSE;
1506-
}
1502+
RETURN_BOOL(php_copy_file_ctx(source, target, 0, context) == SUCCESS);
15071503
}
15081504
/* }}} */
15091505

0 commit comments

Comments
 (0)