From 7118ec6612be53b37ddebcd0c3685f128920e4f5 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 8 Jul 2011 14:01:25 +0200 Subject: [PATCH] Use auto-imported element/2 --- src/rebar_rel_utils.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rebar_rel_utils.erl b/src/rebar_rel_utils.erl index 627ce13..bdf58d3 100644 --- a/src/rebar_rel_utils.erl +++ b/src/rebar_rel_utils.erl @@ -166,8 +166,8 @@ get_target_parent_dir(ReltoolConfig) -> make_proplist([{_,_}=H|T], Acc) -> make_proplist(T, [H|Acc]); make_proplist([H|T], Acc) -> - App = erlang:element(1, H), - Ver = erlang:element(2, H), + App = element(1, H), + Ver = element(2, H), make_proplist(T, [{App,Ver}|Acc]); make_proplist([], Acc) -> Acc.