Skip to content

Commit 0ce33fd

Browse files
author
Maciej Szlosarczyk
committed
Replace apply(Fun, Args) with a direct module:function(Args) call
1 parent ae478d6 commit 0ce33fd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

apps/epp_proxy/src/epp_http_client.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212

1313
%% Callback API
1414
request(#epp_request{} = Request) ->
15-
HackneyArgs = handle_args(Request),
16-
case apply(hackney, request, HackneyArgs) of
15+
[Method, URL, Headers, Payload, Options] =
16+
handle_args(Request),
17+
case hackney:request(Method, URL, Headers, Payload,
18+
Options)
19+
of
1720
{error, Error} -> log_and_return_canned(Error, Request);
1821
{Status, _StatusCode, _Headers, ClientRef} ->
1922
{ok, Body} = hackney:body(ClientRef), {Status, Body}

0 commit comments

Comments
 (0)