Skip to content

Commit

Permalink
Range over string, not rune slice
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotx committed Apr 18, 2022
1 parent 1a15462 commit 040a6c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/CharVomit/cv.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ func (c *CharVomit) RemoveExcluded(config arg.ConfigType) error {
return nil
}

data := []rune(config.Excluded)
for _, r := range data {
for _, r := range config.Excluded {
c.AcceptableChars = strings.ReplaceAll(c.AcceptableChars, string(r), "")
}

Expand Down

0 comments on commit 040a6c5

Please sign in to comment.