Skip to content

Commit 3f98b8d

Browse files
author
Oleksii Korshenko
authored
MAGETWO-85833: Stop the profiler when returning early in \Magento\Eav\Model\Config::getAttribute #12810
2 parents 8c9e245 + 0352232 commit 3f98b8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Eav/Model/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ public function getAttribute($entityType, $code)
503503
}
504504

505505
if (isset($this->attributes[$entityTypeCode][$code])) {
506+
\Magento\Framework\Profiler::stop('EAV: ' . __METHOD__);
506507
return $this->attributes[$entityTypeCode][$code];
507508
}
508509

0 commit comments

Comments
 (0)