Ver código fonte

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 anos atrás
pai
commit
38b08252c6
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      src/rebar.erl
  2. +1
    -1
      src/rebar_erlydtl_compiler.erl

+ 1
- 1
src/rebar.erl Ver arquivo

@ -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 Ver arquivo

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

Carregando…
Cancelar
Salvar