Fix unused stateKey variable
This commit is contained in:
parent
1e73175e27
commit
246836517c
|
@ -868,7 +868,7 @@ func (r *Queryer) QueryRoomInfo(ctx context.Context, roomID spec.RoomID) (*types
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Queryer) CurrentStateEvent(ctx context.Context, roomID spec.RoomID, eventType string, stateKey string) (gomatrixserverlib.PDU, error) {
|
func (r *Queryer) CurrentStateEvent(ctx context.Context, roomID spec.RoomID, eventType string, stateKey string) (gomatrixserverlib.PDU, error) {
|
||||||
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, "")
|
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, stateKey)
|
||||||
if res == nil {
|
if res == nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue