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

Remove a now-useless function

This commit is contained in:
jvoisin 2024-12-07 23:07:28 +01:00 committed by Frédéric Guillot
parent 059f5c0905
commit 2f56ebd3a6

View file

@ -452,16 +452,12 @@ func isPositiveInteger(value string) bool {
return false return false
} }
func getAttributeValue(name string, attributes []html.Attribute) string { func getIntegerAttributeValue(name string, attributes []html.Attribute) int {
for _, attribute := range attributes { for _, attribute := range attributes {
if attribute.Key == name { if attribute.Key == name {
return attribute.Val number, _ := strconv.Atoi(attribute.Val)
}
}
return ""
}
func getIntegerAttributeValue(name string, attributes []html.Attribute) int {
number, _ := strconv.Atoi(getAttributeValue(name, attributes))
return number return number
} }
}
return 0
}