Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bchatelard committed Nov 28, 2024
1 parent ca7b653 commit dccda6b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/koyeb/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ func NewDeployCmd() *cobra.Command {
if err := addonsHandler.Setup(ctx, args[0]); err != nil {
return err
}
defer addonsHandler.Cleanup(ctx)
defer func() {
err := addonsHandler.Cleanup(ctx)
if err != nil {
log.Errorf("Error while cleaning up addons: %s", err)
}
}()

if serviceId == "" {
createService := koyeb.NewCreateServiceWithDefaults()
Expand Down Expand Up @@ -185,7 +190,7 @@ func NewDeployCmd() *cobra.Command {
[]string{},
"List of addons, the addons will be executed localy before the deployment",
)
deployCmd.Flags().MarkHidden("addons")
_ = deployCmd.Flags().MarkHidden("addons")

return deployCmd
}
Expand Down

0 comments on commit dccda6b

Please sign in to comment.