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>
This commit is contained in:
John Molakvoæ 2023-08-05 12:05:36 +02:00 committed by backportbot-nextcloud[bot]
parent c4505160a0
commit fe85d7d05d

View file

@ -663,7 +663,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);
}