Skip to content

Commit 109962f

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-1608: remote-storage:sync errors on 0 byte files
1 parent d9ff85e commit 109962f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/AwsS3/Driver/AwsS3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function filePutContents($path, $content, $mode = null): bool|int
272272

273273
try {
274274
$this->adapter->write($path, $content, new Config($config));
275-
return ($this->adapter->fileSize($path)->fileSize() !== NULL)??true;
275+
return ($this->adapter->fileSize($path)->fileSize() !== null)??true;
276276

277277
} catch (FlysystemFilesystemException | UnableToRetrieveMetadata $e) {
278278
$this->logger->error($e->getMessage());

0 commit comments

Comments
 (0)