lib/transform: avoid empty charmap entry

This commit is contained in:
albertony 2025-06-18 09:49:04 +02:00
parent 16f1e08b73
commit 62a9727ab5

View File

@ -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)