Skip to content

Commit c9c2ae9

Browse files
committed
Simplify
1 parent 592b161 commit c9c2ae9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Zend/zend_partial.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,6 @@ static zend_ast *zp_param_attributes_to_ast(zend_function *function,
445445
if (attr) {
446446
attributes_ast = zend_ast_create_list(1, ZEND_AST_ATTRIBUTE_GROUP,
447447
zp_attribute_to_ast(attr));
448-
}
449-
450-
if (attributes_ast) {
451448
attributes_ast = zend_ast_create_list(1, ZEND_AST_ATTRIBUTE_LIST,
452449
attributes_ast);
453450
}
@@ -719,8 +716,6 @@ zend_op_array *zp_compile(zval *this_ptr, zend_function *function,
719716
if (attr) {
720717
attributes_ast = zend_ast_create_list(1, ZEND_AST_ATTRIBUTE_GROUP,
721718
zp_attribute_to_ast(attr));
722-
}
723-
if (attributes_ast) {
724719
attributes_ast = zend_ast_create_list(1, ZEND_AST_ATTRIBUTE_LIST,
725720
attributes_ast);
726721
}

0 commit comments

Comments
 (0)