1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00

Remove redundant check in SplObjectStorage->count

This commit is contained in:
Tyson Andre
2020-12-29 10:16:04 -05:00
parent 984df80e27
commit f29dcc168a

View File

@@ -507,15 +507,7 @@ PHP_METHOD(SplObjectStorage, count)
}
if (mode == COUNT_RECURSIVE) {
zend_long ret;
if (mode != COUNT_RECURSIVE) {
ret = zend_hash_num_elements(&intern->storage);
} else {
ret = php_count_recursive(&intern->storage);
}
RETURN_LONG(ret);
RETURN_LONG(php_count_recursive(&intern->storage));
return;
}