Remove redundant early return

This commit is contained in:
J. Ryan Stinnett 2021-06-09 15:48:30 +01:00
parent b43315c6c1
commit e566704bdf

View file

@ -663,11 +663,7 @@ export default class EventTile extends React.Component<IProps, IState> {
const receiptOffset = 15; const receiptOffset = 15;
let left = 0; let left = 0;
const receipts = this.props.readReceipts || []; const receipts = this.props.readReceipts;
if (receipts.length === 0) {
return null;
}
for (let i = 0; i < receipts.length; ++i) { for (let i = 0; i < receipts.length; ++i) {
const receipt = receipts[i]; const receipt = receipts[i];