Early return

This commit is contained in:
Khan M Rashedun-Naby 2018-05-24 23:02:07 +06:00
parent 2725cd56d4
commit 5b079343e8
1 changed files with 1 additions and 1 deletions

View File

@ -1607,7 +1607,7 @@ function wc_add_number_precision_deep( $value, $round = true ) {
*/
function wc_remove_number_precision_deep( $value ) {
if ( ! is_array( $value ) ) {
$value = wc_remove_number_precision( $value );
return wc_remove_number_precision( $value );
}
foreach ( $value as $key => $sub_value ) {