diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index 5b256c379b..e54218509d 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()); } /**