From 93f6ef36af5c22ae6aa548ea74bf2e0901ad7672 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sat, 10 Nov 2012 21:49:52 +0100 Subject: [PATCH 1/2] rebar_erlydtl_compiler: fix incorrect lists:keysort/2 call --- src/rebar_erlydtl_compiler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 25981b2..b5fe899 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -133,7 +133,7 @@ erlydtl_opts(Config) -> Tuples = [{K,V} || {K,V} <- Opts], case [L || L <- Opts, is_list(L), not io_lib:printable_list(L)] of [] -> - lists:keysort(1, [Tuples]); + lists:keysort(1, Tuples); Lists -> lists:map(fun(L) -> lists:keysort(1, lists:foldl(fun({K,T}, Acc) -> From a9491e112f81652574bfeac028491559326843cf Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sat, 10 Nov 2012 21:49:19 +0100 Subject: [PATCH 2/2] Fix Dialyzer warning in rebar:run/2 --- src/rebar.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar.erl b/src/rebar.erl index 82e3fac..c7c9d29 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -69,7 +69,7 @@ main(Args) -> %% Erlang-API entry point run(BaseConfig, Commands) -> - application:load(rebar), + _ = application:load(rebar), run_aux(BaseConfig, Commands). %% ====================================================================