[Pkg-owncloud-commits] [owncloud] 99/199: remove unneeded check
David Prévot
taffit at moszumanska.debian.org
Sun Jun 1 18:53:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 488fc402e4c144692a1a4c84d5cfacaae9bea2b8
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jul 4 21:17:52 2013 +0200
remove unneeded check
---
lib/private/files/storage/common.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index ed51bbf..8ebc0bc 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -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);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list