Fix possible return value tuple error

This commit is contained in:
Craig Everett 2020-01-10 15:17:07 +09:00
parent ea66d1c191
commit f1c97bcb88

View File

@ -1579,7 +1579,7 @@ do_fetch(PackageID, Requestor, State = #s{id = ID}) ->
case file:read_file(Path) of
{ok, Bin} ->
ok = do_fetch2(Bin, Requestor, ID),
{ok, State};
State;
{error, enoent} ->
{Realm, Name, Version} = PackageID,
Action = {fetch, Realm, Name, Version},