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 d6fe5acbec
commit 0638f58632

View file

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