Fix warnings.

This commit is contained in:
lain 2018-12-10 20:49:06 +01:00
parent 8682be29a5
commit d6bf06ab4f

View File

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