Skip to content

Commit e8a8eb0

Browse files
authored
ENGCOM-7298: Removed a duplicate variable in Magento\QuoteGraphQl\Model\Resolver\Cart and in \Magento\QuoteGraphQl\Model\Resolver\SetBillingAddressOnCart #27685
2 parents ffbab87 + b3f3f7b commit e8a8eb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/Cart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
4343
$maskedCartId = $args['cart_id'];
4444

4545
$currentUserId = $context->getUserId();
46-
$storeId = $storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
46+
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
4747
$cart = $this->getCartForUser->execute($maskedCartId, $currentUserId, $storeId);
4848

4949
return [

app/code/Magento/QuoteGraphQl/Model/Resolver/SetBillingAddressOnCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
6565
}
6666
$billingAddress = $args['input']['billing_address'];
6767

68-
$storeId = $storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
68+
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
6969
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
7070
$this->checkCartCheckoutAllowance->execute($cart);
7171
$this->setBillingAddressOnCart->execute($context, $cart, $billingAddress);

0 commit comments

Comments
 (0)