Skip to content

Commit 9efc688

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-32710: Code micro-optimizations
fixed update from mainline
1 parent 4fb0551 commit 9efc688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Email/Model/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function isValidForSend()
397397
public function getType()
398398
{
399399
$templateType = $this->getTemplateType();
400-
if (is_null($templateType) && $this->getId()) {
400+
if (null == $templateType && $this->getId()) {
401401
$templateType = $this->_emailConfig->getTemplateType($this->getId());
402402
$templateType = $templateType == 'html' ? self::TYPE_HTML : self::TYPE_TEXT;
403403
}

0 commit comments

Comments
 (0)