summaryrefslogtreecommitdiff
path: root/src/rebar_prv_packages.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_packages.erl')
-rw-r--r--src/rebar_prv_packages.erl10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/rebar_prv_packages.erl b/src/rebar_prv_packages.erl
index 9a40734..880d4a6 100644
--- a/src/rebar_prv_packages.erl
+++ b/src/rebar_prv_packages.erl
@@ -27,13 +27,9 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(State) ->
- case rebar_packages:get_packages(State) of
- {Dict, _} ->
- print_packages(Dict),
- {ok, State};
- error ->
- ?PRV_ERROR(load_registry_fail)
- end.
+ {Dict, _} = rebar_packages:get_packages(State),
+ print_packages(Dict),
+ {ok, State}.
-spec format_error(any()) -> iolist().
format_error(load_registry_fail) ->