Skip to content

Commit

Permalink
fix(update): check command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 15, 2023
1 parent 06a2913 commit 70ff5af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ func (c *Controller) Update(ctx context.Context, logE *logrus.Entry, param *conf
if err := c.updateCommand(ctx, logE, param); err != nil {
return err
}
if len(param.Args) != 0 {
return nil
}
cfgFilePath, err := c.configFinder.Find(param.PWD, param.ConfigFilePath)
if err != nil {
return fmt.Errorf("find a configuration file: %w", err)
}
if len(param.Args) != 0 {
return nil
}
if err := c.update(ctx, logE, param, cfgFilePath); err != nil {
return err
}
Expand Down

0 comments on commit 70ff5af

Please sign in to comment.