From: Joas Schilling Date: Wed, 24 Jul 2019 08:39:57 +0000 (+0200) Subject: PHPStorm code cleanup X-Git-Tag: v16.0.4RC1~37^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7322c7efdcfadf31c34f00c47f4c42f3d196ed4;p=nextcloud-server.git PHPStorm code cleanup Signed-off-by: Joas Schilling --- diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index 5b256c379b6..e54218509dc 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -158,9 +158,9 @@ class Manager implements ICommentsManager { $comment = $this->get($id); if ($comment->getParentId() === '0') { return $comment->getId(); - } else { - return $this->determineTopmostParentId($comment->getParentId()); } + + return $this->determineTopmostParentId($comment->getParentId()); } /**