Skip to content

Commit af25183

Browse files
mergify[bot]Jerónimo Albi
andauthored
chore: fix linting issue in plugin command (#3948) (#3949)
(cherry picked from commit cb89c41) Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
1 parent e3b7470 commit af25183

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ignite/cmd/plugin.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,18 +424,12 @@ If no path is specified all declared apps are updated.`,
424424
RunE: func(cmd *cobra.Command, args []string) error {
425425
if len(args) == 0 {
426426
// update all plugins
427-
if err := plugin.Update(plugins...); err != nil {
428-
return err
429-
}
430-
return nil
427+
return plugin.Update(plugins...)
431428
}
432429
// find the plugin to update
433430
for _, p := range plugins {
434431
if p.HasPath(args[0]) {
435-
if err := plugin.Update(p); err != nil {
436-
return err
437-
}
438-
return nil
432+
return plugin.Update(p)
439433
}
440434
}
441435
return errors.Errorf("App %q not found", args[0])

0 commit comments

Comments
 (0)