Skip to content

Commit

Permalink
fix: trim tag spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Feb 17, 2024
1 parent eea8687 commit b98723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collections/domain/collection/subject.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *Subject) UpdateTags(tags []string) error {
return nil
}

slice.Map(tags, strings.TrimSpace)
tags = slice.Map(tags, strings.TrimSpace)

if lo.ContainsBy(tags, func(item string) bool { return !dam.AllPrintableChar(item) }) {
return gerr.ErrInvisibleChar
Expand Down

0 comments on commit b98723e

Please sign in to comment.