Skip to content

Commit 41b6911

Browse files
authored
🔧 Remove uneccessary variable
Remove variable assignment
1 parent 393f695 commit 41b6911

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend

1 file changed

+1
-2
lines changed

app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend/Engine.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ public function beforeSave()
6161
parent::beforeSave();
6262
$value = (string)$this->getValue();
6363
if (empty($value)) {
64-
$searchEngine = $this->engineResolver->getCurrentSearchEngine();
65-
$this->setValue($searchEngine);
64+
$this->setValue($this->engineResolver->getCurrentSearchEngine());
6665
}
6766
return $this;
6867
}

0 commit comments

Comments
 (0)