Use else instead of two returns

pull/21833/head
Luke Barnard 2017-03-08 15:11:38 +00:00
parent eca82bdb42
commit c4001b5c5d
1 changed files with 2 additions and 4 deletions

View File

@ -738,13 +738,11 @@ module.exports = React.createClass({
if (teamToken) { if (teamToken) {
this._teamToken = teamToken; this._teamToken = teamToken;
dis.dispatch({action: 'view_home_page'}); dis.dispatch({action: 'view_home_page'});
return;
} else if (this._is_registered) { } else if (this._is_registered) {
dis.dispatch({action: 'view_user_settings'}); dis.dispatch({action: 'view_user_settings'});
return; } else {
}
dis.dispatch({action: 'view_room_directory'}); dis.dispatch({action: 'view_room_directory'});
}
}, },
/** /**