Skip to content
Snippets Groups Projects
Commit 4668f8c8 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #1178 from owncloud/return_true_because_of_ponies

Remove uneeded return
parents 65ef780e cc00c54f
Branches
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment