From e8b4770940f632f09e543b0bceaa211e08e5a06d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 17 Sep 2018 20:01:55 +0200 Subject: [PATCH] fix lint --- src/components/structures/RoomView.js | 2 +- src/components/views/rooms/MemberList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 7996c0eab8..e9e46a2ff6 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -598,7 +598,7 @@ module.exports = React.createClass({ if (!this.unmounted) { this.setState({membersLoaded: true}); } - } catch(err) { + } catch (err) { const errorMessage = `Fetching room members for ${room.roomId} failed.` + " Room members will appear incomplete."; console.error(errorMessage); diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index 907f162a40..f70347a449 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -107,7 +107,7 @@ module.exports = React.createClass({ this.setState({loading: true}); try { await room.loadMembersIfNeeded(); - } catch(ex) {/* already logged in RoomView */} + } catch (ex) {/* already logged in RoomView */} if (this._mounted) { this.setState(this._getMembersState(this.roomMembers())); this._listenForMembersChanges();