mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Fix linter issue
This commit is contained in:
parent
3a6ca74ff5
commit
753971dc9b
|
|
@ -105,6 +105,9 @@ func (s *accountDataStatements) SelectAccountDataInRange(
|
||||||
filter.Senders, filter.NotSenders,
|
filter.Senders, filter.NotSenders,
|
||||||
filter.Types, filter.NotTypes,
|
filter.Types, filter.NotTypes,
|
||||||
[]string{}, nil, filter.Limit, FilterOrderAsc)
|
[]string{}, nil, filter.Limit, FilterOrderAsc)
|
||||||
|
if err != nil {
|
||||||
|
return nil, 0, err
|
||||||
|
}
|
||||||
|
|
||||||
rows, err := stmt.QueryContext(ctx, params...)
|
rows, err := stmt.QueryContext(ctx, params...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -133,7 +136,7 @@ func (s *accountDataStatements) SelectAccountDataInRange(
|
||||||
if pos == 0 {
|
if pos == 0 {
|
||||||
pos = r.High()
|
pos = r.High()
|
||||||
}
|
}
|
||||||
return data, pos, nil
|
return data, pos, rows.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *accountDataStatements) SelectMaxAccountDataID(
|
func (s *accountDataStatements) SelectMaxAccountDataID(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue