Skip to content

Commit

Permalink
Side fix - corrected appCondensed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
codepope committed Jun 26, 2020
1 parent 8aacb63 commit 69b6160
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package cmd

import (
"fmt"
"github.com/superfly/flyctl/cmdctx"
"os"
"strings"

"github.com/superfly/flyctl/cmdctx"

"github.com/spf13/cobra"
"github.com/superfly/flyctl/docstrings"
)
Expand Down Expand Up @@ -48,7 +49,7 @@ func runList(ctx *cmdctx.CmdContext) error {
return nil
}

type CondensedApp struct {
type appCondensed struct {
ID string
Name string
Status string
Expand Down Expand Up @@ -77,9 +78,9 @@ func runListApps(commandContext *cmdctx.CmdContext) error {
return err
}

var filteredApps []CondensedApp
var filteredApps []appCondensed

filteredApps = make([]CondensedApp, 0)
filteredApps = make([]appCondensed, 0)

for _, app := range apps {
saved := false
Expand All @@ -99,7 +100,7 @@ func runListApps(commandContext *cmdctx.CmdContext) error {
}

if saved {
filteredApps = append(filteredApps, CondensedApp{ID: app.ID, Name: app.Name, Status: app.Status, Deployed: app.Deployed, Hostname: app.Hostname, Organization: app.Organization.Slug})
filteredApps = append(filteredApps, appCondensed{ID: app.ID, Name: app.Name, Status: app.Status, Deployed: app.Deployed, Hostname: app.Hostname, Organization: app.Organization.Slug})
}
}

Expand Down

0 comments on commit 69b6160

Please sign in to comment.