remove unneeded check
This commit is contained in:
parent
d15ed9b4d3
commit
488fc402e4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue