Procházet zdrojové kódy

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 před 12 roky
rodič
revize
38b08252c6
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -1
      src/rebar.erl
  2. +1
    -1
      src/rebar_erlydtl_compiler.erl

+ 1
- 1
src/rebar.erl Zobrazit soubor

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

+ 1
- 1
src/rebar_erlydtl_compiler.erl Zobrazit soubor

@ -133,7 +133,7 @@ erlydtl_opts(Config) ->
Tuples = [{K,V} || {K,V} <- Opts], Tuples = [{K,V} || {K,V} <- Opts],
case [L || L <- Opts, is_list(L), not io_lib:printable_list(L)] of case [L || L <- Opts, is_list(L), not io_lib:printable_list(L)] of
[] -> [] ->
lists:keysort(1, [Tuples]);
lists:keysort(1, Tuples);
Lists -> Lists ->
lists:map(fun(L) -> lists:map(fun(L) ->
lists:keysort(1, lists:foldl(fun({K,T}, Acc) -> lists:keysort(1, lists:foldl(fun({K,T}, Acc) ->

Načítá se…
Zrušit
Uložit