From 2f2846116e0e7d4e32174376af4d23062c3f6294 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 6 Apr 2022 19:56:43 +0200 Subject: [PATCH] Correct typo in constructor name Signed-off-by: Evan Lezar --- internal/discover/legacy.go | 2 +- internal/lookup/executable.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/discover/legacy.go b/internal/discover/legacy.go index 7f4c5276..0d0d8e38 100644 --- a/internal/discover/legacy.go +++ b/internal/discover/legacy.go @@ -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 diff --git a/internal/lookup/executable.go b/internal/lookup/executable.go index be7577ff..3109c440 100644 --- a/internal/lookup/executable.go +++ b/internal/lookup/executable.go @@ -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)