From 18479e74221a71eb020a1737b8661dfc11a3261c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?= Date: Fri, 4 Jan 2019 12:22:42 +0100 Subject: Remove unnecessary clauses in update_package/3 --- src/rebar_packages.erl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/rebar_packages.erl b/src/rebar_packages.erl index e92fbda..fc68cab 100644 --- a/src/rebar_packages.erl +++ b/src/rebar_packages.erl @@ -239,10 +239,6 @@ update_package(Name, RepoConfig=#{name := Repo}, State) -> {ok, RegistryDir} = rebar_packages:registry_dir(State), PackageIndex = filename:join(RegistryDir, ?INDEX_FILE), ok = ets:tab2file(?PACKAGE_TABLE, PackageIndex); - {ok, {403, _Headers, _}} -> - not_found; - {ok, {404, _Headers, _}} -> - not_found; {error, unverified} -> ?WARN(unverified_repo_message(), [Repo]), fail; -- cgit v1.1