Skip to content

Commit

Permalink
fix(list): ignore errors and lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Aug 15, 2024
1 parent 097d83f commit 2e60c2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/commands/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ func execute(c *cli.Context) error {
reg := registry.GetRegistration(name)

if reg.AlternativeResource != "" {
color.New(color.Bold).Printf("%-55s\n", name)
color.New(color.Bold, color.FgYellow).Printf(" > %-55s", reg.AlternativeResource)
color.New(color.FgCyan).Printf("alternative resource\n")
_, _ = color.New(color.Bold).Printf("%-55s\n", name)
_, _ = color.New(color.Bold, color.FgYellow).Printf(" > %-55s", reg.AlternativeResource)
_, _ = color.New(color.FgCyan).Printf("alternative resource\n")
} else {
color.New(color.Bold).Printf("%-55s", name)
_, _ = color.New(color.Bold).Printf("%-55s", name)
c := color.FgGreen
if reg.Scope == nuke.Organization {
c = color.FgHiGreen
} else if reg.Scope == nuke.Project {
c = color.FgHiBlue
}
color.New(c).Printf(fmt.Sprintf("%s\n", string(reg.Scope)))
_, _ = color.New(c).Printf(fmt.Sprintf("%s\n", string(reg.Scope))) // nolint: govet
}
}

Expand Down

0 comments on commit 2e60c2b

Please sign in to comment.