Review comment - remove redundant empty() call

Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
Dariusz Olszewski 2022-10-10 21:03:28 +02:00 committed by backportbot-nextcloud[bot]
parent 6119604f71
commit 52a5d0cea6

View file

@ -365,7 +365,7 @@ abstract class Node implements \Sabre\DAV\INode {
$share = $storage->getShare();
$note = $share->getNote();
if ($share->getShareOwner() !== $user && !empty($note)) {
if ($share->getShareOwner() !== $user) {
return $note;
}
return '';