remove unneeded check

This commit is contained in:
Robin Appelman 2013-07-04 21:17:52 +02:00
parent d15ed9b4d3
commit 488fc402e4
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
if ($this->file_exists($path2)) {
if ($this->is_dir($path2)) {
$this->rmdir($path2);
} else if ($this->is_file($path2)) {
} else {
$this->unlink($path2);
}
}
@ -158,7 +158,7 @@ abstract class Common implements \OC\Files\Storage\Storage {
if ($this->file_exists($path2)) {
if ($this->is_dir($path2)) {
$this->rmdir($path2);
} else if ($this->is_file($path2)) {
} else {
$this->unlink($path2);
}
}