mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Remove redundant early return
This commit is contained in:
parent
b43315c6c1
commit
e566704bdf
1 changed files with 1 additions and 5 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue