refactor: simplifing range statement

This commit is contained in:
2021-07-21 16:36:46 +01:00
parent 53576dc916
commit 9216cc5d6a

View File

@ -68,7 +68,7 @@ func GetAppsJSON() (AppsJson, error) {
func sortByAppName(apps AppsJson) []string {
var names []string
for name, _ := range apps {
for name := range apps {
names = append(names, name)
}
sort.Slice(names, func(i, j int) bool {