Remove redundant early return

pull/21833/head
J. Ryan Stinnett 2021-06-09 15:48:30 +01:00
parent b43315c6c1
commit e566704bdf
1 changed files with 1 additions and 5 deletions

View File

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