summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-07-24 10:39:57 +0200
committerJoas Schilling <coding@schilljs.com>2019-07-24 10:39:57 +0200
commit7d3a349d8f906507212977ace8eb30164c69ec8e (patch)
treef00ad32831d57fc2ca0b7baf9805c6d284dc3c8d /lib
parent3b334169a89c3aa0ef9b6e173a3f9bc8ad2fe0cb (diff)
downloadnextcloud-server-7d3a349d8f906507212977ace8eb30164c69ec8e.tar.gz
nextcloud-server-7d3a349d8f906507212977ace8eb30164c69ec8e.zip
PHPStorm code cleanup
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Comments/Manager.php4
1 files changed, 2 insertions, 2 deletions
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());
}
/**