mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
parent
d6fe5acbec
commit
0638f58632
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue