mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Simplify isValidTag
This commit is contained in:
parent
902ca63c45
commit
d0984f29da
1 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue