Skip to content

Commit d1f1eba

Browse files
committed
remove unesscesary check
1 parent 1760043 commit d1f1eba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Search/Block/Term.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ protected function _loadTerms()
100100
$temp[$term->getQueryText()] = $term;
101101
$termKeys[] = $term->getQueryText();
102102
}
103-
if (empty($termKeys)) {
104-
return $this;
105-
}
103+
106104
natcasesort($termKeys);
107105

108106
foreach ($termKeys as $termKey) {

0 commit comments

Comments
 (0)