From a73bc335c9606220ad40f9e8d7b61545df816ddc Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Tue, 4 Oct 2022 13:10:14 +0200 Subject: [PATCH] Simplify redundant clause in mod_ping:user_send_iq/3 --- src/mod_ping.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mod_ping.erl b/src/mod_ping.erl index 6703259acd..31a1bee899 100644 --- a/src/mod_ping.erl +++ b/src/mod_ping.erl @@ -140,9 +140,7 @@ user_send_iq(Acc, #{c2s_data := StateData}, #{host_type := HostType}) -> _ -> {ok, Acc} end; - {_, {error, not_found}} -> - {ok, Acc}; - {_, _} -> + _ -> {ok, Acc} end.