Merge pull request #1178 from owncloud/return_true_because_of_ponies
Remove uneeded return
This commit is contained in:
commit
4668f8c86e
|
@ -73,12 +73,10 @@ class User {
|
|||
}
|
||||
/**
|
||||
* @brief Loggs the user out including all the session data
|
||||
* @returns true
|
||||
*
|
||||
* Logout, destroys session
|
||||
*/
|
||||
public static function logout() {
|
||||
return \OC_USER::logout();
|
||||
\OC_USER::logout();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -260,17 +260,13 @@ class OC_User {
|
|||
|
||||
/**
|
||||
* @brief Sets user id for session and triggers emit
|
||||
* @returns true
|
||||
*
|
||||
*/
|
||||
public static function setUserId($uid) {
|
||||
$_SESSION['user_id'] = $uid;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Logs the current user out and kills all the session data
|
||||
* @returns true
|
||||
*
|
||||
* Logout, destroys session
|
||||
*/
|
||||
|
@ -279,7 +275,6 @@ class OC_User {
|
|||
session_unset();
|
||||
session_destroy();
|
||||
OC_User::unsetMagicInCookie();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue