You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
Use else instead of two returns
This commit is contained in:
@ -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'});
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user