Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Fix staticcheck and fmt findings
Browse files Browse the repository at this point in the history
Fix findings by `staticcheck` and `gofmt`.
  • Loading branch information
HeavyWombat committed Feb 17, 2021
1 parent 8ab3133 commit f74ded3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/gonut/cf/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ func NotifyLatestRelease() error {

func releaseNotificationTable(installed string, current string) [][]string {
rows := [][]string{
[]string{
{
bunt.Sprintf("*Release:*"),
bunt.Sprintf("Crimson{%s} → YellowGreen{%s}", installed, current),
},
[]string{
{
bunt.Sprintf("*Changelog:*"),
bunt.Sprintf("CornflowerBlue{~https://github.com/homeport/gonut/releases/tag/v%s~}", current),
},
Expand Down
4 changes: 2 additions & 2 deletions internal/gonut/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func pushCommandFunc(cmd *cobra.Command, args []string) error {
apps = append(apps, app)

} else {
return fmt.Errorf("Could not find %s sample app. Please use an argument from the following list:\n\n%s", arg, getOptions())
return fmt.Errorf("could not find %s sample app. Please use an argument from the following list:\n\n%s", arg, getOptions())
}
}

Expand All @@ -256,7 +256,7 @@ func pushCommandFunc(cmd *cobra.Command, args []string) error {
case "all":
stacks, err := cf.GetStackNames()
if err != nil {
return fmt.Errorf("An error occurred while trying to retrieve a list of installed stacks: %v", err)
return fmt.Errorf("an error occurred while trying to retrieve a list of installed stacks: %v", err)
}

for _, stack := range stacks {
Expand Down

0 comments on commit f74ded3

Please sign in to comment.