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:
parent
61af08a721
commit
4fe902a5d2
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue