From 79c01fa1a492e1af57b7eee191c5edcef6bbc3de Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 10 Nov 2016 11:03:43 +0000 Subject: [PATCH] Remove empty lines --- .../views/elements/MemberEventListSummary.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 26696ccf40..d753fcc007 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -92,12 +92,9 @@ module.exports = React.createClass({ renderSummary: function(joinEvents, leaveEvents) { let joiners = this.renderNameList(joinEvents); let remainingJoiners = joinEvents.length - this.props.summaryLength; - let leavers = this.renderNameList(leaveEvents); let remainingLeavers = leaveEvents.length - this.props.summaryLength; - let joinSummary = null; - if (joiners) { joinSummary = ( @@ -105,9 +102,7 @@ module.exports = React.createClass({ ); } - let leaveSummary = ''; - if (leavers) { leaveSummary = ( @@ -115,7 +110,6 @@ module.exports = React.createClass({ ); } - return ( {joinSummary}{joinSummary && leaveSummary?'; ':''} @@ -124,10 +118,7 @@ module.exports = React.createClass({ ); }, - - renderAvatars: function(events) { - let avatars = events.slice(0, this.props.avatarsMaxLength).map((e) => { let onClickAvatar = () => { dispatcher.dispatch({ @@ -201,7 +192,6 @@ module.exports = React.createClass({ toggleButton = ( {expanded?'collapse':'expand'} ); - let noun = (joinAndLeft === 1 ? 'user' : 'others'); summaryContainer = (