Skip to content

Commit

Permalink
Removed 2 unneeded function calls. Local var is already there. (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
woutersamaey committed Jan 10, 2021
1 parent 1a7fbf2 commit 2fe9658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Sales/Model/Quote/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ public function setProduct($product)
$this->setData('product', $product)
->setProductId($product->getId())
->setProductType($product->getTypeId())
->setSku($this->getProduct()->getSku())
->setSku($product->getSku())
->setName($product->getName())
->setWeight($this->getProduct()->getWeight())
->setWeight($product->getWeight())
->setTaxClassId($product->getTaxClassId())
->setBaseCost($product->getCost())
->setIsRecurring($product->getIsRecurring());
Expand Down

0 comments on commit 2fe9658

Please sign in to comment.