Skip to content

Commit

Permalink
refactor(update): rename a method
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 15, 2023
1 parent 00576b9 commit 2abd9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func (c *Controller) Update(ctx context.Context, logE *logrus.Entry, param *config.Param) error {
if err := c.findCommand(ctx, logE, param); err != nil {
if err := c.updateCommand(ctx, logE, param); err != nil {
return err
}
cfgFilePath, err := c.configFinder.Find(param.PWD, param.ConfigFilePath)
Expand All @@ -28,7 +28,7 @@ func (c *Controller) Update(ctx context.Context, logE *logrus.Entry, param *conf
return nil
}

func (c *Controller) findCommand(ctx context.Context, logE *logrus.Entry, param *config.Param) error {
func (c *Controller) updateCommand(ctx context.Context, logE *logrus.Entry, param *config.Param) error {
newVersions := map[string]string{}
for _, arg := range param.Args {
findResult, err := c.which.Which(ctx, logE, param, arg)
Expand Down

0 comments on commit 2abd9c3

Please sign in to comment.