Skip to content

Commit a6e6706

Browse files
committed
fix: linter errors
1 parent ccf0c38 commit a6e6706

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/store/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ func (s *Store) findPlugin(plugin string) (string, error) {
116116
if val, exists := os.LookupEnv(config.CONFIGMANAGER_DIR); exists {
117117
fallbackPath = append([]string{val}, fallbackPath...)
118118
}
119-
for _, p := range []string{os.Getenv(config.CONFIGMANAGER_DIR), cwd, hd} {
119+
for _, p := range fallbackPath {
120120
ff := path.Join(p, loc, plugin, fmt.Sprintf(namePattern, plugin, runtime.GOOS, runtime.GOARCH))
121121
if _, err := os.Stat(ff); err == nil {
122122
// break on first non nil error
123123
return ff, nil
124124
}
125125
}
126-
return "", fmt.Errorf("configmanger provider: ( %s ) %w", plugin, ErrPluginNotFound)
126+
return "", fmt.Errorf("configmanager provider: ( %s ) %w", plugin, ErrPluginNotFound)
127127
}

0 commit comments

Comments
 (0)