Remove duplicated variable

This commit is contained in:
Alex P 2022-05-03 16:14:22 +03:00
parent 93ef548b65
commit dd4b39971f

View file

@ -216,7 +216,6 @@ class PaymentsEndpoint {
);
$response = $this->request( $url, $args );
$json = json_decode( $response['body'] );
if ( is_wp_error( $response ) ) {
throw new RuntimeException( 'Could not refund payment.' );