Remove extraneous paranoia

The value is nullchecked later on.
pull/21833/head
Travis Ralston 2019-11-18 14:25:04 -07:00
parent 8d25952dbb
commit 2f89f28496
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
// This seems fishy - try and get the event for the new rooms
const newType = this._getSettings(BREADCRUMBS_EVENT_TYPE);
if (newType) val = newType['recent_rooms'];
else val = event.getContent()['rooms'] || [];
else val = event.getContent()['rooms'];
} else if (event.getType() === BREADCRUMBS_EVENT_TYPE) {
val = event.getContent()['recent_rooms'];
} else {