diff options
Diffstat (limited to 'formatter')
-rw-r--r-- | formatter/formatter.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go index 7ac41a6..633c067 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -53,12 +53,10 @@ func printAttrs(attrs []parser.Attr) { classes = slices.DeleteFunc(classes, func(a parser.Attr) bool { return a.Key != "class" }) - attrs = slices.DeleteFunc(attrs, func(a parser.Attr) bool { return a.Key == "class" }) - if len(classes) > 0 { fmt.Print(" class=\"") for i, a := range classes { |