From: lain Date: Mon, 10 Dec 2018 19:49:06 +0000 (+0100) Subject: Fix warnings. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d6bf06ab4fb493d5e240092988fe37f2d6a655a3;p=akkoma Fix warnings. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index dc67f29c6..bcc34b38f 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -807,8 +807,8 @@ defmodule Pleroma.User 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)