Skip to content

Commit b1066bf

Browse files
committed
MAGETWO-59089: Problem with change currency
- Cleaned up unnecessary code
1 parent e908e6c commit b1066bf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/internal/Magento/Framework/Pricing/Render/PriceBox.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ public function getCacheKey()
8686
*/
8787
protected function getCacheLifetime()
8888
{
89-
if ($this->hasData('cache_lifetime')) {
90-
$cacheLifeTime = $this->getData('cache_lifetime');
91-
return (int)$cacheLifeTime;
92-
} else {
93-
return parent::hasCacheLifetime()? parent::getCacheLifetime() : null;
94-
}
89+
return parent::hasCacheLifetime()? parent::getCacheLifetime() : null;
9590
}
9691

9792
/**

0 commit comments

Comments
 (0)