Sfoglia il codice sorgente

Remove warnings reported by xref

Replace rebar_util:get_cwd/0 by rebar_utils:get_cwd/0.  Luckily the
misspelt module name doesn't seem to have caused any harm, since
rebar_app_utils:is_app_dir/0 and rebar_rel_utils:is_rel_dir/0 aren't
called (only their /1 counterparts).
pull/3/head
Klas Johansson 15 anni fa
parent
commit
07b20d16f8
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      src/rebar_app_utils.erl
  2. +1
    -1
      src/rebar_rel_utils.erl

+ 1
- 1
src/rebar_app_utils.erl Vedi File

@ -42,7 +42,7 @@
%% =================================================================== %% ===================================================================
is_app_dir() -> is_app_dir() ->
is_app_dir(rebar_util:get_cwd()).
is_app_dir(rebar_utils:get_cwd()).
is_app_dir(Dir) -> is_app_dir(Dir) ->
AppSrc = filename:join(Dir, "src/*.app.src"), AppSrc = filename:join(Dir, "src/*.app.src"),

+ 1
- 1
src/rebar_rel_utils.erl Vedi File

@ -29,7 +29,7 @@
-export([is_rel_dir/0, is_rel_dir/1]). -export([is_rel_dir/0, is_rel_dir/1]).
is_rel_dir() -> is_rel_dir() ->
is_rel_dir(rebar_util:get_cwd()).
is_rel_dir(rebar_utils:get_cwd()).
is_rel_dir(Dir) -> is_rel_dir(Dir) ->
Fname = filename:join([Dir, "reltool.config"]), Fname = filename:join([Dir, "reltool.config"]),

Caricamento…
Annulla
Salva