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-05 10:34:12 +0000 |
commit | 0638f58632b79e3a04c5f13ee5d554ea34884865 (patch) | |
tree | 5ce10feeb56234744c267d8a96ddf53709f8af7e /lib/private | |
parent | d6fe5acbecbafd9880e00afb4c80d0fd96e18793 (diff) | |
download | nextcloud-server-0638f58632b79e3a04c5f13ee5d554ea34884865.tar.gz nextcloud-server-0638f58632b79e3a04c5f13ee5d554ea34884865.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/private')
-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 1d22a3835e9..1adc14c626c 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -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); } |