Fix warnings.

This commit is contained in:
lain 2018-12-10 20:49:06 +01:00
parent 8682be29a5
commit d6bf06ab4f
1 changed files with 2 additions and 2 deletions

View File

@ -807,8 +807,8 @@ def wait_and_refresh(timeout, %User{} = a, %User{} = b) do
end
def parse_bio(bio, user \\ %User{info: %{source_data: %{}}})
def parse_bio(nil, user), do: ""
def parse_bio(bio, user) when bio == "", do: bio
def parse_bio(nil, _user), do: ""
def parse_bio(bio, _user) when bio == "", do: bio
def parse_bio(bio, user) do
mentions = Formatter.parse_mentions(bio)