diff options
author | J0WI <J0WI@users.noreply.github.com> | 2022-09-02 21:03:32 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2022-12-04 14:47:43 +0100 |
commit | 53994f600d16ca976d95c701b7710a891b389ce4 (patch) | |
tree | 09e3bdb907e2718b592dacb3b77e8cd792c1e9c4 /lib | |
parent | 40166ddc0a76208a34c75ac30dc9c8cc042c33bf (diff) | |
download | nextcloud-server-53994f600d16ca976d95c701b7710a891b389ce4.tar.gz nextcloud-server-53994f600d16ca976d95c701b7710a891b389ce4.zip |
Fix redundant condition
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 1acc28e0495..2c7781a86bc 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -250,7 +250,7 @@ class OC_Image implements \OCP\IImage { if (!$isWritable) { $this->logger->error(__METHOD__ . '(): Directory \'' . dirname($filePath) . '\' is not writable.', ['app' => 'core']); return false; - } elseif ($isWritable && file_exists($filePath) && !is_writable($filePath)) { + } elseif (file_exists($filePath) && !is_writable($filePath)) { $this->logger->error(__METHOD__ . '(): File \'' . $filePath . '\' is not writable.', ['app' => 'core']); return false; } |