瀏覽代碼

Silence warnings, courtesy of Tuncer Ayaz

pull/3/head
Dave Smith 15 年之前
父節點
當前提交
fe03778678
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      src/rebar_escripter.erl
  2. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_escripter.erl 查看文件

@ -32,7 +32,7 @@
%% Public API %% Public API
%% =================================================================== %% ===================================================================
escriptize(Config, AppFile) ->
escriptize(_Config, AppFile) ->
%% Extract the application name from the archive -- this will be be what %% Extract the application name from the archive -- this will be be what
%% we call the output script %% we call the output script
{ok, AppName, _AppData} = rebar_app_utils:load_app_file(AppFile), {ok, AppName, _AppData} = rebar_app_utils:load_app_file(AppFile),

+ 1
- 1
src/rebar_utils.erl 查看文件

@ -85,7 +85,7 @@ now_str() ->
%% Internal functions %% Internal functions
%% ==================================================================== %% ====================================================================
match_first([], Val) ->
match_first([], _Val) ->
nomatch; nomatch;
match_first([{Regex, MatchValue} | Rest], Val) -> match_first([{Regex, MatchValue} | Rest], Val) ->
case re:run(Val, Regex, [{capture, none}]) of case re:run(Val, Regex, [{capture, none}]) of

Loading…
取消
儲存