]> source.dussan.org Git - nextcloud-server.git/commitdiff
PHPStorm code cleanup 16523/head
authorJoas Schilling <coding@schilljs.com>
Wed, 24 Jul 2019 08:39:57 +0000 (10:39 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 24 Jul 2019 08:39:57 +0000 (10:39 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Comments/Manager.php

index 5b256c379b62b6ae068f4de03e7f7a240bb29500..e54218509dcc1bef52926f27c08f658dbecc4fac 100644 (file)
@@ -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());
        }
 
        /**