Use else instead of two returns
This commit is contained in:
parent
eca82bdb42
commit
c4001b5c5d
1 changed files with 2 additions and 4 deletions
|
@ -738,13 +738,11 @@ module.exports = React.createClass({
|
|||
if (teamToken) {
|
||||
this._teamToken = teamToken;
|
||||
dis.dispatch({action: 'view_home_page'});
|
||||
return;
|
||||
} else if (this._is_registered) {
|
||||
dis.dispatch({action: 'view_user_settings'});
|
||||
return;
|
||||
} else {
|
||||
dis.dispatch({action: 'view_room_directory'});
|
||||
}
|
||||
|
||||
dis.dispatch({action: 'view_room_directory'});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue