Skip to content

Commit

Permalink
Merge pull request #312 from superfly/codepope/issue311
Browse files Browse the repository at this point in the history
(SCC-SA4006) A value assigned to a variable Fixes #311
  • Loading branch information
codepope committed Sep 29, 2020
2 parents 72146d0 + fdaca23 commit 88b22f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ func runStatus(ctx *cmdctx.CmdContext) error {
return err
}

_, backupregions, err := ctx.Client.API().ListAppRegions(ctx.AppName)

err = ctx.Frender(cmdctx.PresenterOption{Presentable: &presenters.AppStatus{AppStatus: *app}, HideHeader: true, Vertical: true, Title: "App"})
if err != nil {
return err
Expand Down Expand Up @@ -66,6 +64,12 @@ func runStatus(ctx *cmdctx.CmdContext) error {
}
}

_, backupregions, err := ctx.Client.API().ListAppRegions(ctx.AppName)

if err != nil {
return err
}

err = ctx.Frender(cmdctx.PresenterOption{
Presentable: &presenters.Allocations{Allocations: app.Allocations, BackupRegions: backupregions},
Title: "Allocations",
Expand Down

0 comments on commit 88b22f9

Please sign in to comment.