summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2012-11-10 16:57:14 -0800
committerDave Smith <dizzyd@dizzyd.com>2012-11-10 16:57:14 -0800
commit38b08252c60bc495523bbbdab5209123cf6ab5b3 (patch)
treecfe084a7130f4f445098a6e89ab8a6913ed7d30a /src
parent0c8dd15c792b690abc19ac74025077eb1bc7281e (diff)
parenta9491e112f81652574bfeac028491559326843cf (diff)
Merge pull request #14 from tuncer/fix-list-keysort-call
Fix rebar_erlydtl_compiler:erlydtl_opts/1 and rebar:run/2
Diffstat (limited to 'src')
-rw-r--r--src/rebar.erl2
-rw-r--r--src/rebar_erlydtl_compiler.erl2
2 files changed, 2 insertions, 2 deletions
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).
%% ====================================================================
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) ->