From: Holger Weiss Date: Mon, 27 May 2019 19:56:37 +0000 (+0200) Subject: mod_http_upload: Avoid catch-all error handling X-Git-Tag: 19.05~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b301fc93ec66207b78894a6b478caf8b8ba4a9e;p=ejabberd mod_http_upload: Avoid catch-all error handling --- diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index c1013fe77..364b3a019 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -833,8 +833,6 @@ do_store_file(Path, Request, FileMode, DirMode) -> end catch _:{badmatch, {error, Error}} -> - {error, Error}; - _:Error -> {error, Error} end.