1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-22 17:18:37 +00:00

Use strings.EqualFold instead of strings.ToLower(…) ==

This commit is contained in:
jvoisin 2024-02-29 00:28:54 +01:00 committed by Frédéric Guillot
parent 61af08a721
commit 4fe902a5d2
3 changed files with 6 additions and 6 deletions

View file

@ -67,7 +67,7 @@ func IsHTTPS(websiteURL string) bool {
return false
}
return strings.ToLower(parsedURL.Scheme) == "https"
return strings.EqualFold(parsedURL.Scheme, "https")
}
// Domain returns only the domain part of the given URL.