mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 12:13:09 -06:00
Linter
This commit is contained in:
parent
aef1916986
commit
ae54c7f159
|
|
@ -250,7 +250,8 @@ func (p *PDUStreamProvider) addRoomDeltaToResponse(
|
||||||
// room that were returned.
|
// room that were returned.
|
||||||
latestPosition := r.To
|
latestPosition := r.To
|
||||||
updateLatestPosition := func(mostRecentEventID string) {
|
updateLatestPosition := func(mostRecentEventID string) {
|
||||||
if _, pos, err := p.DB.PositionInTopology(ctx, mostRecentEventID); err == nil {
|
var pos types.StreamPosition
|
||||||
|
if _, pos, err = p.DB.PositionInTopology(ctx, mostRecentEventID); err == nil {
|
||||||
switch {
|
switch {
|
||||||
case r.Backwards && pos > latestPosition:
|
case r.Backwards && pos > latestPosition:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue