]> granicus.if.org Git - ejabberd/commitdiff
Do not use underscore variable
authorMickael Remond <mremond@process-one.net>
Fri, 1 Apr 2016 10:24:49 +0000 (12:24 +0200)
committerMickael Remond <mremond@process-one.net>
Fri, 1 Apr 2016 10:24:49 +0000 (12:24 +0200)
src/mod_http_api.erl

index 73a07205976e5cdc33daa4fc7c6678c5fc238cfa..c4fae2022640fcddb898a02867c0f120b15cc0d8 100644 (file)
@@ -188,8 +188,8 @@ check_permissions2(#request{ip={IP, _Port}}, Call, _Policy) ->
                 true -> {allowed, Call, admin};
                 _ -> unauthorized_response()
             end;
-        _E ->
-           ?DEBUG("Unauthorized: ~p", [_E]),
+        E ->
+           ?DEBUG("Unauthorized: ~p", [E]),
             unauthorized_response()
     end;
 check_permissions2(_Request, _Call, _Policy) ->