Skip to content

Commit 9467552

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/RemoteStorage/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getDirectoryRead($directoryCode, $driverCode = DriverPool::REMOT
8686
*/
8787
public function getDirectoryWrite($directoryCode, $driverCode = DriverPool::REMOTE)
8888
{
89-
$hasCode = !$this->directoryCodes || in_array($directoryCode, $this->directoryCodes, true);
89+
$hasCode = $this->directoryCodes && in_array($directoryCode, $this->directoryCodes, true);
9090

9191
if ($driverCode === DriverPool::REMOTE && $hasCode && $this->isEnabled) {
9292
$code = $directoryCode . '_' . $driverCode;

0 commit comments

Comments
 (0)