Skip to content

Commit ccecc7c

Browse files
committed
#22760 static-test-fix
1 parent 70281da commit ccecc7c

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Option.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ protected function _saveValuePrices(\Magento\Framework\Model\AbstractModel $obje
174174
$storeCurrency = $this->_storeManager->getStore($storeId)->getBaseCurrencyCode();
175175
$rate = $this->_currencyFactory->create()->load($websiteBaseCurrency)
176176
->getRate($storeCurrency);
177-
if (!$rate) {
178-
$rate = 1;
179-
}
177+
$rate ?: $rate = 1;
180178
$newPrice = $object->getPrice() * $rate;
181179
} else {
182180
$newPrice = $object->getPrice();
@@ -587,6 +585,8 @@ public function getPriceTypes()
587585
}
588586

589587
/**
588+
* Returns metadata poll.
589+
*
590590
* @return \Magento\Framework\EntityManager\MetadataPool
591591
*/
592592
private function getMetadataPool()

0 commit comments

Comments
 (0)