Skip to content

Commit

Permalink
revert(is_burner_domain): preserve existing behavior for invalid argu…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
Betree committed Mar 27, 2024
1 parent 7f63c0d commit e093c82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/burnex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule Burnex do
"""
@spec is_burner_domain?(binary()) :: boolean()
def is_burner_domain?(domain) when is_binary(domain) do
def is_burner_domain?(domain) do
case MapSet.member?(@providers, domain) do
false ->
case Regex.run(~r/^[^.]+[.](.+)$/, domain) do
Expand All @@ -85,8 +85,6 @@ defmodule Burnex do
end
end

def is_burner_domain?(_), do: true

@doc """
Returns a MapSet with all blocked domains providers.
Expand Down

0 comments on commit e093c82

Please sign in to comment.