Przeglądaj źródła

Add spec: rebar_utils:abort/2 does not return

Thanks to Kostis for no_return() result type.
Tuncer Ayaz 14 lat temu
rodzic
commit
79546e66ff
1 zmienionych plików z 1 dodań i 0 usunięć
  1. +1
    -0
      src/rebar_utils.erl

+ 1
- 0
src/rebar_utils.erl Wyświetl plik

@ -123,6 +123,7 @@ ensure_dir(Path) ->
Error Error
end. end.
-spec abort(string(), [term()]) -> no_return().
abort(String, Args) -> abort(String, Args) ->
?ERROR(String, Args), ?ERROR(String, Args),
halt(1). halt(1).

Ładowanie…
Anuluj
Zapisz