File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -849,8 +849,8 @@ public function clearCache()
849
849
// exceptions, allowing the process to continue smoothly.
850
850
try {
851
851
$ this ->_mediaDirectory ->delete ($ directory );
852
- } // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
853
- catch (FileSystemException $ e ) {
852
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
853
+ } catch (FileSystemException $ e ) {
854
854
}
855
855
856
856
$ this ->_coreFileStorageDatabase ->deleteFolder ($ this ->_mediaDirectory ->getAbsolutePath ($ directory ));
Original file line number Diff line number Diff line change @@ -523,7 +523,8 @@ public function testClearCache(): void
523
523
* @return void
524
524
* @throws FileSystemException
525
525
*/
526
- public function testClearCacheWithUnableToDeleteDirectory (): void {
526
+ public function testClearCacheWithUnableToDeleteDirectory (): void
527
+ {
527
528
$ this ->mediaDirectory ->expects ($ this ->once ())
528
529
->method ('delete ' )
529
530
->willThrowException (new FileSystemException (__ ('Cannot delete non-empty dir. ' )));
You can’t perform that action at this time.
0 commit comments