refactor: simplifing range statement

This commit is contained in:
Roxie Gibson 2021-07-21 16:36:46 +01:00
parent 53576dc916
commit 9216cc5d6a
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D

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 {