Skip to content

Commit

Permalink
Simplify redundant clause in mod_ping:user_send_iq/3
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Oct 4, 2022
1 parent 002eb93 commit a73bc33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mod_ping.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit a73bc33

Please sign in to comment.