Ver código fonte

[#149002995] fix flipped variables

pull/1589/head
Sam Sawan 7 anos atrás
pai
commit
f62b7cb32e
1 arquivos alterados com 6 adições e 5 exclusões
  1. +6
    -5
      src/rebar_prv_edoc.erl

+ 6
- 5
src/rebar_prv_edoc.erl Ver arquivo

@ -84,8 +84,9 @@ format_error(Reason) ->
has_configured_paths(EdocOpts) ->
proplists:get_value(dir, EdocOpts) =/= undefined.
add_to_paths(Opts, Path) ->
case proplists:get_value(doc_path, Opts) of
undefined -> [{doc_path, [Path]} | Opts];
Paths -> lists:keyreplace(doc_path, 1, Opts, {doc_path, [Path | Paths]})
end.
add_to_paths([], Path) ->
[{doc_path, [Path]}];
add_to_paths([{doc_path, Paths}|T], Path) ->
[{doc_path, [Path | Paths]} | T];
add_to_paths([H|T], Path) ->
[H | add_to_paths(T, Path)].

Carregando…
Cancelar
Salvar