Skip to content

Commit

Permalink
Remove unsed $notes variable
Browse files Browse the repository at this point in the history
  • Loading branch information
james-allan committed Oct 31, 2024
1 parent e825e0c commit b5b0421
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ function ( $id ) {
$this->updater->maybe_migrate_before_renewal( $subscription_id );

$subscription = new WC_Subscription( $subscription_id );
$notes = wc_get_order_notes(
[ 'order_id' => $subscription_id ]
);

// Confirm the subscription's payment method remains the same.
$this->assertEquals( $pm_id, $subscription->get_meta( self::SOURCE_ID_META_KEY ) );
Expand All @@ -355,9 +352,6 @@ function ( $id ) {
$this->updater->maybe_migrate_before_renewal( $subscription_id );

$subscription = new WC_Subscription( $subscription_id );
$notes = wc_get_order_notes(
[ 'order_id' => $subscription_id ]
);

// Confirm the subscription's payment method remains the same.
$this->assertEquals( $source_id, $subscription->get_meta( self::SOURCE_ID_META_KEY ) );
Expand Down

0 comments on commit b5b0421

Please sign in to comment.