refactor: better naming for loop scoped variables
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-07-22 14:53:08 +02:00
parent 381de28e83
commit fce1ab6c02
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 4 deletions

View File

@ -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()