forked from coop-cloud/abra
refactor: simplifing range statement
This commit is contained in:
parent
53576dc916
commit
9216cc5d6a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user