소스 검색

Fix Dialyzer warning

pull/3/head
Tuncer Ayaz 14 년 전
부모
커밋
5a37149642
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. +5
    -3
      src/rebar_utils.erl

+ 5
- 3
src/rebar_utils.erl 파일 보기

@ -166,9 +166,7 @@ expand_sh_flag({abort_on_error, Message}) ->
end};
expand_sh_flag(abort_on_error) ->
{error_handler,
fun(Command, Rc) ->
?ABORT("~s failed with error: ~w\n", [Command, Rc])
end};
fun log_and_abort/2};
expand_sh_flag(use_stdout) ->
{output_handler,
fun(Line, Acc) ->
@ -185,6 +183,10 @@ expand_sh_flag({cd, Dir}) ->
expand_sh_flag({env, Env}) ->
{port_settings, {env, Env}}.
-spec log_and_abort(string(), integer()) -> no_return().
log_and_abort(Command, Rc) ->
?ABORT("~s failed with error: ~w\n", [Command, Rc]).
sh_loop(Port, Fun, Acc) ->
receive
{Port, {data, {_, "_port_cmd_status_ " ++ Status}}} ->

불러오는 중...
취소
저장