Skip to content

Commit

Permalink
Removed a duplicate variable in \Magento\QuoteGraphQl\Model\Resolver\…
Browse files Browse the repository at this point in the history
…Cart and in \Magento\QuoteGraphQl\Model\Resolver\SetBillingAddressOnCart
  • Loading branch information
bgorski committed Apr 10, 2020
1 parent 15dc874 commit cc5f1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/QuoteGraphQl/Model/Resolver/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
$maskedCartId = $args['cart_id'];

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

return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
}
$billingAddress = $args['input']['billing_address'];

$storeId = $storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
$this->checkCartCheckoutAllowance->execute($cart);
$this->setBillingAddressOnCart->execute($context, $cart, $billingAddress);
Expand Down

0 comments on commit cc5f1bc

Please sign in to comment.