Przeglądaj źródła

set resources to empty list if non in app env

pull/389/head
Tristan Sloughter 10 lat temu
rodzic
commit
aa7a272aae
1 zmienionych plików z 6 dodań i 1 usunięć
  1. +6
    -1
      src/rebar_state.erl

+ 6
- 1
src/rebar_state.erl Wyświetl plik

@ -117,7 +117,12 @@ new(ParentState, Config, Dir) ->
,default=NewOpts}.
base_state() ->
{ok, Resources} = application:get_env(rebar, resources),
case application:get_env(rebar, resources) of
undefined ->
Resources = [];
{ok, Resources} ->
Resources
end,
#state_t{resources=Resources}.
get(State, Key) ->

Ładowanie…
Anuluj
Zapisz