Use auto-imported element/2

This commit is contained in:
Tuncer Ayaz 2011-07-08 14:01:25 +02:00
parent 1ec92ebac3
commit 7118ec6612

View file

@ -166,8 +166,8 @@ get_target_parent_dir(ReltoolConfig) ->
make_proplist([{_,_}=H|T], Acc) -> make_proplist([{_,_}=H|T], Acc) ->
make_proplist(T, [H|Acc]); make_proplist(T, [H|Acc]);
make_proplist([H|T], Acc) -> make_proplist([H|T], Acc) ->
App = erlang:element(1, H), App = element(1, H),
Ver = erlang:element(2, H), Ver = element(2, H),
make_proplist(T, [{App,Ver}|Acc]); make_proplist(T, [{App,Ver}|Acc]);
make_proplist([], Acc) -> make_proplist([], Acc) ->
Acc. Acc.