From 64423e1f7d8dbd905aace061f185c0b140d0b02e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 10 Apr 2019 15:34:06 -0600 Subject: [PATCH] let -> const --- .../views/settings/tabs/room/AdvancedRoomSettingsTab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/settings/tabs/room/AdvancedRoomSettingsTab.js b/src/components/views/settings/tabs/room/AdvancedRoomSettingsTab.js index 183631ae7a..b09274adfd 100644 --- a/src/components/views/settings/tabs/room/AdvancedRoomSettingsTab.js +++ b/src/components/views/settings/tabs/room/AdvancedRoomSettingsTab.js @@ -44,9 +44,9 @@ export default class AdvancedRoomSettingsTab extends React.Component { room.getRecommendedVersion().then((v) => { const tombstone = room.currentState.getStateEvents("m.room.tombstone", ""); - let additionalStateChanges = {}; + const additionalStateChanges = {}; const createEvent = room.currentState.getStateEvents("m.room.create", ""); - let predecessor = createEvent ? createEvent.getContent().predecessor : null; + const predecessor = createEvent ? createEvent.getContent().predecessor : null; if (predecessor && predecessor.room_id) { additionalStateChanges['oldRoomId'] = predecessor.room_id; additionalStateChanges['oldEventId'] = predecessor.event_id;