Skip to content

Commit 270f37c

Browse files
monkeyseemazhalai
authored andcommitted
MAGETWO-47064: JS error appears if loading product grid after clean cache and static files
- Remove redundant code
1 parent 89288d8 commit 270f37c

File tree

1 file changed

+1
-10
lines changed
  • lib/internal/Magento/Framework/Filesystem/Driver

1 file changed

+1
-10
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/File.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,7 @@ public function getParentDirectory($path)
195195
*/
196196
public function createDirectory($path, $permissions)
197197
{
198-
$result = $this->mkdirRecursive($path, $permissions);
199-
if (!$result) {
200-
throw new FileSystemException(
201-
new \Magento\Framework\Phrase(
202-
'Directory "%1" cannot be created %2',
203-
[$path, $this->getWarningMessage()]
204-
)
205-
);
206-
}
207-
return $result;
198+
return $this->mkdirRecursive($path, $permissions);
208199
}
209200

210201
/**

0 commit comments

Comments
 (0)