]> granicus.if.org Git - ejabberd/commitdiff
mod_http_upload: Avoid catch-all error handling
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 27 May 2019 19:56:37 +0000 (21:56 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 27 May 2019 19:56:37 +0000 (21:56 +0200)
src/mod_http_upload.erl

index c1013fe77835b068a108d3d694458fefc2c2d4a4..364b3a0194e5f4745300b7f7817ebb4ef261eb49 100644 (file)
@@ -833,8 +833,6 @@ do_store_file(Path, Request, FileMode, DirMode) ->
        end
     catch
        _:{badmatch, {error, Error}} ->
-           {error, Error};
-       _:Error ->
            {error, Error}
     end.