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
|
case Floki.find(html_tree, "link[rel=icon]") do
|
||||||
[] ->
|
[] ->
|
||||||
{:error, "No element matching link[rel=icon]"}
|
nil
|
||||||
|
|
||||||
links ->
|
links ->
|
||||||
links
|
links
|
||||||
|
@ -83,7 +83,7 @@ defmodule Frenzy.Task.FetchFavicon do
|
||||||
end)
|
end)
|
||||||
|> case do
|
|> case do
|
||||||
nil ->
|
nil ->
|
||||||
{:error, "No link[rel=icon] with type of image/png"}
|
nil
|
||||||
|
|
||||||
link ->
|
link ->
|
||||||
link
|
link
|
||||||
|
|
Loading…
Reference in New Issue