Skip to content

Commit

Permalink
ctp-list: fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Zaniewski <piotr@upbound.io>
  • Loading branch information
Piotr1215 committed Apr 4, 2024
1 parent c8233a3 commit c03f7a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/up/controlplane/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/pterm/pterm"
"k8s.io/client-go/dynamic"

"k8s.io/client-go/tools/clientcmd"

"github.com/upbound/up-sdk-go/service/configurations"
cp "github.com/upbound/up-sdk-go/service/controlplanes"
"github.com/upbound/up/internal/controlplane"
Expand All @@ -29,7 +31,6 @@ import (
"github.com/upbound/up/internal/profile"
"github.com/upbound/up/internal/upbound"
"github.com/upbound/up/internal/upterm"
"k8s.io/client-go/tools/clientcmd"
)

type ctpLister interface {
Expand Down Expand Up @@ -114,8 +115,8 @@ func (c *listCmd) Run(ctx context.Context, printer upterm.ObjectPrinter, p pterm

for _, resp := range l {
if ctp.Name == resp.Name {
p.Printfln("Cannot list control from inside a controlplane, use `up ctx ..` to switch to a goup level")
return nil
p.Printfln("Cannot list control from inside a controlplane, use `up ctx ..` to switch to a goup level")
return nil
}
}
return tabularPrint(l, printer, upCtx)
Expand Down

0 comments on commit c03f7a0

Please sign in to comment.