convert type to variadic
This commit is contained in:
parent
fa55e82bc1
commit
ced09b22ca
1 changed files with 5 additions and 3 deletions
|
@ -443,10 +443,12 @@ const (
|
|||
type SpecialContentType string
|
||||
|
||||
//IsContentSpecial returns true if the claim is of a special content type
|
||||
func (c *Claim) IsContentSpecial(specialTag SpecialContentType) bool {
|
||||
func (c *Claim) IsContentSpecial(specialTags ...SpecialContentType) bool {
|
||||
for _, t := range c.Value.GetTags() {
|
||||
if strings.Contains(t, string(specialTag)) {
|
||||
return true
|
||||
for _, ct := range specialTags {
|
||||
if strings.Contains(t, string(ct)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue