mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
Linting
This commit is contained in:
parent
5ca4558de7
commit
a5b4a5aca5
|
|
@ -45,7 +45,8 @@ func CheckForSoftFail(
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Work out if the room exists.
|
// Work out if the room exists.
|
||||||
roomInfo, err := db.RoomInfo(ctx, event.RoomID())
|
var roomInfo *types.RoomInfo
|
||||||
|
roomInfo, err = db.RoomInfo(ctx, event.RoomID())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("db.RoomNID: %w", err)
|
return false, fmt.Errorf("db.RoomNID: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue