1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Simplify isValidTag

This commit is contained in:
jvoisin 2024-12-07 23:01:59 +01:00 committed by Frédéric Guillot
parent 902ca63c45
commit d0984f29da

View file

@ -245,10 +245,8 @@ func getExtraAttributes(tagName string) ([]string, []string) {
}
func isValidTag(tagName string) bool {
if _, ok := tagAllowList[tagName]; ok {
return true
}
return false
_, ok := tagAllowList[tagName]
return ok
}
func isValidAttribute(tagName, attributeName string) bool {