mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Code cleanup
This commit is contained in:
parent
a7457d316b
commit
94deed77ec
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ func (a *FederationInternalAPI) LookupState(
|
||||||
defer cancel()
|
defer cancel()
|
||||||
if !a.IsWhitelistedOrAny(s) {
|
if !a.IsWhitelistedOrAny(s) {
|
||||||
return &fclient.RespState{}, nil
|
return &fclient.RespState{}, nil
|
||||||
} // TODO check &
|
}
|
||||||
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
||||||
return a.federation.LookupState(ctx, origin, s, roomID, eventID, roomVersion)
|
return a.federation.LookupState(ctx, origin, s, roomID, eventID, roomVersion)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue