Enha: use slices methods

This commit is contained in:
Grail Finder
2026-02-04 08:26:30 +03:00
parent 654d6a47ec
commit e3965db3c7
3 changed files with 5 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ import (
"image"
"os"
"path"
"slices"
"strings"
"unicode"
@@ -198,6 +199,7 @@ func listRolesWithUser() []string {
}
// Prepend user role to the beginning of the list
result := append([]string{cfg.UserRole}, filteredRoles...)
slices.Sort(result)
return result
}