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

fix: address minor issues detected by Go linters

This commit is contained in:
Frédéric Guillot 2025-03-24 20:42:30 -07:00
parent febb7b1748
commit e342a4f143
10 changed files with 31 additions and 25 deletions

View file

@ -283,9 +283,10 @@ func isPixelTracker(tagName string, attributes []html.Attribute) bool {
for _, attribute := range attributes {
if attribute.Val == "1" {
if attribute.Key == "height" {
switch attribute.Key {
case "height":
hasHeight = true
} else if attribute.Key == "width" {
case "width":
hasWidth = true
}
}