forked from GNUsocial/gnu-social
Cosmetic changes to common_redirect, clientError, serverError
Since these functions exit (or throw exception) after running, there is no need to have a 'return' statement or similar afterwards.
This commit is contained in:
@@ -294,7 +294,6 @@ class BookmarkPlugin extends MicroAppPlugin
|
||||
if (!$this->user) {
|
||||
// TRANS: Client error displayed when trying to display bookmarks for a non-existing user.
|
||||
$this->clientError(_('No such user.'));
|
||||
return false;
|
||||
}
|
||||
|
||||
$action->menuItem(common_local_url('bookmarks', array('nickname' => $this->user->nickname)),
|
||||
|
Reference in New Issue
Block a user