You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +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