Fix wrong return type

This commit is contained in:
Shadowfacts 2020-05-29 20:06:42 -04:00
parent 5ee8515bb2
commit 09d2e4ae72
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -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