mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
remove unneeded check
This commit is contained in:
parent
d15ed9b4d3
commit
488fc402e4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue