Clean up a bit

This commit is contained in:
Neil Alexander 2021-11-12 09:38:14 +00:00
parent 6016d378a0
commit e874853ed0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 5 additions and 12 deletions

View file

@ -214,7 +214,8 @@ func (r *Inputer) InputRoomEvents(
for _, task := range tasks {
if task.err != nil {
response.ErrMsg = task.err.Error()
_, response.NotAllowed = task.err.(*gomatrixserverlib.NotAllowed)
_, rejected := task.err.(*gomatrixserverlib.NotAllowed)
response.NotAllowed = rejected
return
}
}