diff --git a/lib/transform/cmap.go b/lib/transform/cmap.go index 8fac5da63..b5341c63e 100644 --- a/lib/transform/cmap.go +++ b/lib/transform/cmap.go @@ -20,7 +20,7 @@ type CharmapChoices = fs.Enum[cmapChoices] type cmapChoices struct{} func (cmapChoices) Choices() []string { - choices := make([]string, 1) + choices := []string{} i := 0 for _, enc := range charmap.All { c, ok := enc.(*charmap.Charmap)