Skip to content

Commit

Permalink
chore: fix linting issue in plugin command (#3948) (#3949)
Browse files Browse the repository at this point in the history
(cherry picked from commit cb89c41)

Co-authored-by: Jerónimo Albi <[email protected]>
  • Loading branch information
mergify[bot] and jeronimoalbi authored Feb 6, 2024
1 parent e3b7470 commit af25183
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ignite/cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,18 +424,12 @@ If no path is specified all declared apps are updated.`,
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
// update all plugins
if err := plugin.Update(plugins...); err != nil {
return err
}
return nil
return plugin.Update(plugins...)
}
// find the plugin to update
for _, p := range plugins {
if p.HasPath(args[0]) {
if err := plugin.Update(p); err != nil {
return err
}
return nil
return plugin.Update(p)
}
}
return errors.Errorf("App %q not found", args[0])
Expand Down

0 comments on commit af25183

Please sign in to comment.