Skip to content

Commit

Permalink
avoid appending empty slices
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Sep 12, 2024
1 parent 30fddcc commit ab81be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func ParseHTMLQueries(htmlData []byte, queries []string, nextPage string) ([]int

if len(value2) == 1 {
subresult = append(subresult, value2[0])
} else {
} else if len(value2) > 1 {
subresult = append(subresult, value2)
}

Expand Down

0 comments on commit ab81be6

Please sign in to comment.