summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-08-05 12:05:36 +0200
committerGitHub <noreply@github.com>2023-08-05 12:05:36 +0200
commit7b7d1e3c0911639cba4c20eba7d0a8352091643f (patch)
treedaec58a8649c4609a227f08ee49b06d560bce135 /lib
parentdeecb48e54c50ebb8cac092be1f1fc111d9941c6 (diff)
downloadnextcloud-server-7b7d1e3c0911639cba4c20eba7d0a8352091643f.tar.gz
nextcloud-server-7b7d1e3c0911639cba4c20eba7d0a8352091643f.zip
fix: simplify `sourceData` check
Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index d3593cac8b9..287966e4a28 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -668,7 +668,7 @@ class Cache implements ICache {
$targetPath = $this->normalize($targetPath);
$sourceData = $sourceCache->get($sourcePath);
- if ($sourceData === false || $sourceData === null) {
+ if (!$sourceData) {
throw new \Exception('Invalid source storage path: ' . $sourcePath);
}