From 9216cc5d6a31357942863ed27f155985a926b012 Mon Sep 17 00:00:00 2001 From: Roxie Gibson Date: Wed, 21 Jul 2021 16:36:46 +0100 Subject: [PATCH] refactor: simplifing range statement --- cli/recipe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/recipe.go b/cli/recipe.go index 24c928bf..1402326f 100644 --- a/cli/recipe.go +++ b/cli/recipe.go @@ -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 {