Skip to content

Commit 3da6f23

Browse files
refactor
1 parent bca6bf6 commit 3da6f23

File tree

1 file changed

+1
-5
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+1
-5
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,11 +1972,7 @@ private function getAlreadyExistedImage(array $imageRow, string $columnImage, st
19721972
return array_reduce(
19731973
$imageRow,
19741974
function ($exists, $file) use ($hash) {
1975-
if ($exists) {
1976-
return $exists;
1977-
}
1978-
1979-
if (isset($file['hash']) && $file['hash'] === $hash) {
1975+
if (!$exists && isset($file['hash']) && $file['hash'] === $hash) {
19801976
return $file['value'];
19811977
}
19821978

0 commit comments

Comments
 (0)