Correct typo in constructor name

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-04-06 19:56:43 +02:00
parent 6682bc90b4
commit 2f2846116e
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ var _ Discover = (*legacy)(nil)
func NewLegacyDiscoverer(logger *logrus.Logger, root string) (Discover, error) {
d := legacy{
logger: logger,
lookup: lookup.NewExecutaleLocator(logger, root),
lookup: lookup.NewExecutableLocator(logger, root),
}
return &d, nil

View File

@ -35,8 +35,8 @@ type executable struct {
file
}
// NewExecutaleLocator creates a locator to fine executable files in the path. A logger can also be specified.
func NewExecutaleLocator(logger *log.Logger, root string) Locator {
// NewExecutableLocator creates a locator to fine executable files in the path. A logger can also be specified.
func NewExecutableLocator(logger *log.Logger, root string) Locator {
pathEnv := os.Getenv(envPath)
paths := filepath.SplitList(pathEnv)