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:
parent
febb7b1748
commit
e342a4f143
10 changed files with 31 additions and 25 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue