Skip to content

Commit dc8b5db

Browse files
committed
B2B-2015: [AWS S3] [Integration Tests]: Investigate Test Failures in Framework
1 parent aa7e513 commit dc8b5db

File tree

1 file changed

+1
-4
lines changed
  • app/code/Magento/RemoteStorage/Plugin

1 file changed

+1
-4
lines changed

app/code/Magento/RemoteStorage/Plugin/Image.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ public function __construct(
8787
*/
8888
public function beforeOpen(AbstractAdapter $subject, $filename): array
8989
{
90-
if (!$filename) {
91-
throw new \InvalidArgumentException('Wrong file');
92-
}
93-
if ($this->isEnabled) {
90+
if ($this->isEnabled && !empty($filename)) {
9491
$filename = $this->copyFileToTmp($filename);
9592
}
9693
return [$filename];

0 commit comments

Comments
 (0)