mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 15:33:09 -06:00
Remove unneeded sql.ErrNoRows check
This commit is contained in:
parent
49abf619bc
commit
e07d01e9a4
|
|
@ -1155,10 +1155,6 @@ func (d *Database) GetStateEvent(ctx context.Context, roomID, evType, stateKey s
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
eventTypeNIDMap, err := d.eventTypeNIDs(ctx, nil, []string{evType})
|
eventTypeNIDMap, err := d.eventTypeNIDs(ctx, nil, []string{evType})
|
||||||
if err == sql.ErrNoRows {
|
|
||||||
// No rooms have an event of this type, otherwise we'd have an event type NID
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue