mirror of
https://github.com/matrix-org/dendrite
synced 2025-01-24 10:45:05 +00:00
Don't wrap errors
This commit is contained in:
parent
605d57a24f
commit
4baca2c2a8
1 changed files with 3 additions and 6 deletions
|
@ -88,17 +88,14 @@ func (r *Queryer) QueryStateAfterEvents(
|
|||
stateEntries, err = roomState.LoadCombinedStateAfterEvents(
|
||||
ctx, prevStates,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("roomState.LoadCombinedStateAfterEvents: %w", err)
|
||||
}
|
||||
} else {
|
||||
// Look up the current state for the requested tuples.
|
||||
stateEntries, err = roomState.LoadStateAfterEventsForStringTuples(
|
||||
ctx, prevStates, request.StateToFetch,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("roomState.LoadStateAfterEventsForStringTuples: %w", err)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
stateEvents, err := helpers.LoadStateEvents(ctx, r.DB, stateEntries)
|
||||
|
|
Loading…
Reference in a new issue