Fixing argument to be lower case

Signed-off-by: Matt Farina <matt@mattfarina.com>
pull/7983/head
Matt Farina 4 years ago
parent 2334195a01
commit be38084eb4
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -37,7 +37,7 @@ const (
// lazypath is an lazy-loaded path buffer for the XDG base directory specification. // lazypath is an lazy-loaded path buffer for the XDG base directory specification.
type lazypath string type lazypath string
func (l lazypath) path(helmEnvVar, XDGEnvVar string, defaultFn func() string, elem ...string) string { func (l lazypath) path(helmEnvVar, xdgEnvVar string, defaultFn func() string, elem ...string) string {
// There is an order to checking for a path. // There is an order to checking for a path.
// 1. See if a Helm specific environment variable has been set. // 1. See if a Helm specific environment variable has been set.
@ -47,7 +47,7 @@ func (l lazypath) path(helmEnvVar, XDGEnvVar string, defaultFn func() string, el
if base != "" { if base != "" {
return filepath.Join(base, filepath.Join(elem...)) return filepath.Join(base, filepath.Join(elem...))
} }
base = os.Getenv(XDGEnvVar) base = os.Getenv(xdgEnvVar)
if base == "" { if base == "" {
base = defaultFn() base = defaultFn()
} }

Loading…
Cancel
Save