diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-07-09 13:37:39 -0400 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-07-09 18:37:39 +0100 |
commit | 7b3bc755a34cf97138e614379234cfc47f91a5a9 (patch) | |
tree | 0b88b2d5bd3bdbe0f52e339288e4014e284d575e /scripts-dev/lint.sh | |
parent | Include the original event in /relations (#5626) (diff) | |
download | synapse-7b3bc755a34cf97138e614379234cfc47f91a5a9.tar.xz |
remove unused and unnecessary check for FederationDeniedError (#5645)
FederationDeniedError is a subclass of SynapseError, which is a subclass of CodeMessageException, so if e is a FederationDeniedError, then this check for FederationDeniedError will never be reached since it will be caught by the check for CodeMessageException above. The check for CodeMessageException does almost the same thing as this check (since FederationDeniedError initialises with code=403 and msg="Federation denied with %s."), so may as well just keep allowing it to handle this case.
Diffstat (limited to 'scripts-dev/lint.sh')
0 files changed, 0 insertions, 0 deletions