Fix variable names

This commit is contained in:
Daniil Fedotov 2017-02-08 12:11:01 +00:00
parent cfbb905415
commit bc40af382d
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ list_certs(_, #http_state{url = Url,
end.
load_cert(_, Attributes, Config) ->
Url = proplists:get_value(url, Attributes),
CertUrl = proplists:get_value(url, Attributes),
#http_state{url = BaseUrl,
http_options = HttpOptions,
headers = Headers} = init_state(Config),
@ -73,7 +73,7 @@ decode_cert_list(Body) ->
lists:map(
fun(Cert) ->
Url = proplists:get_value(<<"url">>, Cert),
Id = proplists:get_value(<<"id">>, Cert),
CertId = proplists:get_value(<<"id">>, Cert),
{CertId, [{url, Url}]}
end,
Certs).