Respect visibility in API.
[akkoma] / lib / pleroma / web / xml / xml.ex
index 63580c1f87a96b6ef794643c351e03bafa227f6a..026672ad12fb4f7030e74eb56699f7008171889b 100644 (file)
@@ -1,7 +1,7 @@
 defmodule Pleroma.Web.XML do
   require Logger
 
-  def string_from_xpath(xpath, :error), do: nil
+  def string_from_xpath(_, :error), do: nil
   def string_from_xpath(xpath, doc) do
     {:xmlObj, :string, res} = :xmerl_xpath.string('string(#{xpath})', doc)
 
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.XML do
 
       doc
     catch
-      :exit, error ->
+      :exit, _error ->
         Logger.debug("Couldn't parse xml: #{inspect(text)}")
         :error
     end