Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 379d19e

Browse files
authored
Lint
1 parent 2ad0032 commit 379d19e

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/components/structures/MessagePanel.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export default class MessagePanel extends React.Component {
544544
}
545545
if (!grouper) {
546546
const wantTile = this._shouldShowEvent(mxEv);
547-
const isGrouped =false;
547+
const isGrouped = false;
548548
if (wantTile) {
549549
// make sure we unpack the array returned by _getTilesForEvent,
550550
// otherwise react will auto-generate keys and we will end up
@@ -972,7 +972,7 @@ class CreationGrouper {
972972
const EventListSummary = sdk.getComponent('views.elements.EventListSummary');
973973
const panel = this.panel;
974974
const ret = [];
975-
const isGrouped=true;
975+
const isGrouped = true;
976976
const createEvent = this.createEvent;
977977
const lastShownEvent = this.lastShownEvent;
978978

@@ -1085,7 +1085,7 @@ class RedactionGrouper {
10851085

10861086
const DateSeparator = sdk.getComponent('messages.DateSeparator');
10871087
const EventListSummary = sdk.getComponent('views.elements.EventListSummary');
1088-
const isGrouped=true;
1088+
const isGrouped = true;
10891089
const panel = this.panel;
10901090
const ret = [];
10911091
const lastShownEvent = this.lastShownEvent;
@@ -1102,7 +1102,6 @@ class RedactionGrouper {
11021102
);
11031103

11041104
const senders = new Set();
1105-
11061105
let eventTiles = this.events.map((e, i) => {
11071106
senders.add(e.sender);
11081107
const prevEvent = i === 0 ? this.prevEvent : this.events[i - 1];
@@ -1186,7 +1185,7 @@ class MemberGrouper {
11861185

11871186
const DateSeparator = sdk.getComponent('messages.DateSeparator');
11881187
const MemberEventListSummary = sdk.getComponent('views.elements.MemberEventListSummary');
1189-
const isGrouped=true;
1188+
const isGrouped = true;
11901189
const panel = this.panel;
11911190
const lastShownEvent = this.lastShownEvent;
11921191
const ret = [];

test/components/structures/MessagePanel-test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('MessagePanel', function() {
9494
return events;
9595
}
9696

97-
//Just to avoid breaking Dateseparator tests that might run at 00hrs
97+
// Just to avoid breaking Dateseparator tests that might run at 00hrs
9898
function mkOneDayEvents() {
9999
const events = [];
100100
const ts0 = Date.parse('09 May 2004 00:12:00 GMT');
@@ -264,7 +264,6 @@ describe('MessagePanel', function() {
264264
}),
265265
];
266266
}
267-
268267
function isReadMarkerVisible(rmContainer) {
269268
return rmContainer && rmContainer.children.length > 0;
270269
}
@@ -453,7 +452,7 @@ describe('MessagePanel', function() {
453452
});
454453

455454
it('should render Date separators for the events', function () {
456-
const events = mkOneDayEvents()
455+
const events = mkOneDayEvents();
457456
const res = mount(
458457
<WrappedMessagePanel
459458
className="cls"
@@ -463,7 +462,5 @@ describe('MessagePanel', function() {
463462
const Dates = res.find(sdk.getComponent('messages.DateSeparator'));
464463

465464
expect(Dates.length).toEqual(1);
466-
467-
468-
})
465+
});
469466
});

0 commit comments

Comments
 (0)