mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
Fix unexpected fallthrough
This commit is contained in:
parent
a270a1012a
commit
1c6924a4a3
|
|
@ -288,8 +288,7 @@ func (u *latestEventsUpdater) calculateLatest(
|
|||
referenced, err := u.updater.IsReferenced(newEvent.EventReference)
|
||||
if err != nil {
|
||||
logrus.WithError(err).Errorf("Failed to retrieve event reference for %q", newEvent.EventReference.EventID)
|
||||
}
|
||||
if !referenced {
|
||||
} else if !referenced {
|
||||
newLatest = append(newLatest, newEvent)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue