1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Remove redundant lines

This commit is contained in:
Luke Barnard
2016-11-10 18:01:34 +00:00
parent 3d7f6919cf
commit d3a548773a

View File

@ -71,10 +71,6 @@ module.exports = React.createClass({
return this._getEventSenderName(ev);
}).join(', ');
if (names.length === 0) {
return this._getEventSenderName(lastEvent);
}
let lastName = this._getEventSenderName(lastEvent);
if (names.length === 0) {
// special-case for a single event