Skip to content

Commit dd70606

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-92164: [Backport for 2.1.x] Redundancy in Custom Option Filenames
1 parent 4da639d commit dd70606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/File/ValidatorFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function __construct(
9191
$this->httpFactory = $httpFactory;
9292
$this->isImageValidator = $isImageValidator;
9393
$this->random = $random
94-
?? ObjectManager::getInstance()->get(Random::class);
94+
? $random : ObjectManager::getInstance()->get(Random::class);
9595
parent::__construct($scopeConfig, $filesystem, $fileSize);
9696
}
9797

0 commit comments

Comments
 (0)