Skip to content

Commit eed6061

Browse files
committed
debug code removed
1 parent de137b4 commit eed6061

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

includes/type/object/class-cart-type.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,8 @@ public static function register_cart() {
177177
'type' => array( 'list_of' => 'CartTax' ),
178178
'description' => __( 'Cart total taxes itemized', 'wp-graphql-woocommerce' ),
179179
'resolve' => function( $source ) {
180-
try {
181-
$taxes = $source->get_tax_totals();
182-
return ! empty( $taxes ) ? array_values( $taxes ) : null;
183-
} catch( \Exception $e ) {
184-
wp_send_json( $e->getMessage() );
185-
}
186-
180+
$taxes = $source->get_tax_totals();
181+
return ! empty( $taxes ) ? array_values( $taxes ) : null;
187182
},
188183
),
189184
'isEmpty' => array(

0 commit comments

Comments
 (0)