Sfoglia il codice sorgente

Merge pull request #14 from tuncer/fix-list-keysort-call

Fix rebar_erlydtl_compiler:erlydtl_opts/1 and rebar:run/2
pull/3/head
Dave Smith 12 anni fa
parent
commit
38b08252c6
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      src/rebar.erl
  2. +1
    -1
      src/rebar_erlydtl_compiler.erl

+ 1
- 1
src/rebar.erl Vedi File

@ -69,7 +69,7 @@ main(Args) ->
%% Erlang-API entry point
run(BaseConfig, Commands) ->
application:load(rebar),
_ = application:load(rebar),
run_aux(BaseConfig, Commands).
%% ====================================================================

+ 1
- 1
src/rebar_erlydtl_compiler.erl Vedi File

@ -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) ->

Caricamento…
Annulla
Salva