diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-08-05 12:05:36 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-06 08:46:08 +0000 |
commit | 333040303102b94c608fb29a51f74204cd08f9f9 (patch) | |
tree | 22060e1e58d823c1fb22b6514da69f9cdf694472 | |
parent | cc801d7c2f596c9befad81eaeab055857db3d788 (diff) | |
download | nextcloud-server-333040303102b94c608fb29a51f74204cd08f9f9.tar.gz nextcloud-server-333040303102b94c608fb29a51f74204cd08f9f9.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>
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 39cfe787bd9..0a984637c3b 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -660,7 +660,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); } |