1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +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

@ -184,7 +184,7 @@ func (a *atom10Entry) entryEnclosures() model.EnclosureList {
}
for _, link := range a.Links {
if strings.ToLower(link.Rel) == "enclosure" {
if strings.EqualFold(link.Rel, "enclosure") {
if link.URL == "" {
continue
}