Skip to content

Commit

Permalink
refactor: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Sep 28, 2024
1 parent 30c6930 commit f09f3af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/controller/which/which.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ func (c *Controller) getExePath(findResult *FindResult) (string, error) {
if pkg.Package.Version == "" {
return "", errVersionIsRequired
}
exePath, err := pkg.ExePath(c.rootDir, file, c.runtime) //nolint:wrapcheck
exePath, err := pkg.ExePath(c.rootDir, file, c.runtime)
if err != nil {
return exePath, err
return exePath, err //nolint:wrapcheck
}
if file.Link == "" {
return exePath, err
return exePath, nil
}
return filepath.Join(filepath.Dir(exePath), file.Link), err
return filepath.Join(filepath.Dir(exePath), file.Link), nil
}

func (c *Controller) findExecFile(ctx context.Context, logE *logrus.Entry, param *config.Param, cfgFilePath, exeName string) (*FindResult, error) {
Expand Down

0 comments on commit f09f3af

Please sign in to comment.