From 062b285c38c040cfd4aa4692b8833a3f547fb053 Mon Sep 17 00:00:00 2001 From: benoitc Date: Fri, 23 Aug 2024 23:45:24 +0200 Subject: [PATCH] fix error --- src/hackney_happy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hackney_happy.erl b/src/hackney_happy.erl index 24e51f08..a5e26069 100644 --- a/src/hackney_happy.erl +++ b/src/hackney_happy.erl @@ -51,7 +51,7 @@ getbyname(Hostname, Type) -> {error, nxdomain} = Error -> case inet:parse_address(Hostname) of {ok, IP} -> [IP]; - _ -> Error + _ -> [] end; {error, _Reason} -> []; Else ->