Fix wrong return type
This commit is contained in:
parent
5ee8515bb2
commit
09d2e4ae72
|
@ -59,7 +59,7 @@ defmodule Frenzy.Task.FetchFavicon do
|
|||
|
||||
case Floki.find(html_tree, "link[rel=icon]") do
|
||||
[] ->
|
||||
{:error, "No element matching link[rel=icon]"}
|
||||
nil
|
||||
|
||||
links ->
|
||||
links
|
||||
|
@ -83,7 +83,7 @@ defmodule Frenzy.Task.FetchFavicon do
|
|||
end)
|
||||
|> case do
|
||||
nil ->
|
||||
{:error, "No link[rel=icon] with type of image/png"}
|
||||
nil
|
||||
|
||||
link ->
|
||||
link
|
||||
|
|
Loading…
Reference in New Issue