Skip to content

Commit

Permalink
simplify the way to set the tags support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexucis committed Apr 19, 2021
1 parent 4bfb75e commit 07e9a33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lamenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ func (l *Lamenv) Marshal(object interface{}, parts []string) error {
// AddTagSupport modify the current tag list supported by adding the one passed as a parameter.
// If you prefer to override the default tag list supported by Lamenv, use the method OverrideTagSupport instead.
func (l *Lamenv) AddTagSupport(tags ...string) *Lamenv {
for _, tag := range tags {
l.tagSupports = append(l.tagSupports, tag)
}
l.tagSupports = append(l.tagSupports, tags...)
return l
}

Expand Down

0 comments on commit 07e9a33

Please sign in to comment.