Skip to content

Commit 9b68524

Browse files
authored
MAGETWO-75518: Removed duplicate conditional statement #10963
2 parents de1eece + ba4eb0c commit 9b68524

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)