Skip to content

Commit d69b608

Browse files
MAGETWO-31369: [South] Unit and Integration tests coverage
1 parent 65b5122 commit d69b608

File tree

2 files changed

+105
-90
lines changed

2 files changed

+105
-90
lines changed

app/code/Magento/Theme/Model/CopyService.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,10 @@ protected function _copyFilesRecursively($baseDir, $sourceDir, $targetDir)
197197
*/
198198
protected function _deleteFilesRecursively($targetDir)
199199
{
200-
if (!$this->_directory->isExist($targetDir)) {
201-
return;
202-
}
203-
foreach ($this->_directory->read($targetDir) as $path) {
204-
$this->_directory->delete($path);
200+
if ($this->_directory->isExist($targetDir)) {
201+
foreach ($this->_directory->read($targetDir) as $path) {
202+
$this->_directory->delete($path);
203+
}
205204
}
206205
}
207206
}

0 commit comments

Comments
 (0)