Skip to content

Commit ba4eb0c

Browse files
MAGETWO-75518: Removed duplicate conditional statement #10963
- Merge Pull Request #10963 from jettcalleja/magento2:develop - Merged commits: 1. e3bbc91
2 parents 7d345ff + e3bbc91 commit ba4eb0c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/code/Magento/Checkout/Model/Cart.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@ public function addProduct($productInfo, $requestInfo = null)
366366
) {
367367
$request->setQty($minimumQty);
368368
}
369-
}
370369

371-
if ($productId) {
372370
try {
373371
$result = $this->getQuote()->addProduct($product, $request);
374372
} catch (\Magento\Framework\Exception\LocalizedException $e) {

0 commit comments

Comments
 (0)