From fce1ab6c020e755bdad387add62ab2532f5251b6 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 22 Jul 2021 14:53:08 +0200 Subject: [PATCH] refactor: better naming for loop scoped variables --- cli/recipe.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/recipe.go b/cli/recipe.go index dfc596e..31d89e7 100644 --- a/cli/recipe.go +++ b/cli/recipe.go @@ -163,10 +163,10 @@ var recipeListCommand = &cli.Command{ } tableCol := []string{"Name", "Category", "Status"} table := createTable(tableCol) - for _, appName := range SortByAppName(appSpecs) { - appSpec := appSpecs[appName] - status := fmt.Sprintf("%v", appSpec.Features.Status) - tableRow := []string{appSpec.Name, appSpec.Category, status} + for _, name := range SortByAppName(apps) { + app := apps[name] + status := fmt.Sprintf("%v", app.Features.Status) + tableRow := []string{app.Name, app.Category, status} table.Append(tableRow) } table.Render()