Skip to content

Commit 41ea124

Browse files
committed
AC-711: Static test fixed
1 parent 6aeb6fe commit 41ea124

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\Abstrac
180180
protected $_scopeConfig;
181181

182182
/**
183-
* Customer session
184-
*
185183
* @var \Magento\Customer\Model\Session
186184
*/
187185
protected $_customerSession;
@@ -192,15 +190,11 @@ class Collection extends \Magento\Catalog\Model\ResourceModel\Collection\Abstrac
192190
protected $_localeDate;
193191

194192
/**
195-
* Catalog url
196-
*
197193
* @var \Magento\Catalog\Model\ResourceModel\Url
198194
*/
199195
protected $_catalogUrl;
200196

201197
/**
202-
* Product option factory
203-
*
204198
* @var \Magento\Catalog\Model\Product\OptionFactory
205199
*/
206200
protected $_productOptionFactory;
@@ -765,7 +759,7 @@ public function addIdFilter($productId, $exclude = false)
765759
return $this;
766760
}
767761
if (is_array($productId)) {
768-
if (!empty($productId)) {
762+
if ($productId) {
769763
if ($exclude) {
770764
$condition = ['nin' => $productId];
771765
} else {

0 commit comments

Comments
 (0)