Skip to content

Commit 20bab61

Browse files
committed
Rename receiver arg
1 parent ea6a72f commit 20bab61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/config/lookuper.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ func NewLauncherLookuper(baseLookuper envconfig.Lookuper) *LauncherLookuper {
1515
return &LauncherLookuper{baseLookuper: baseLookuper}
1616
}
1717

18-
func (f *LauncherLookuper) Lookup(key string) (string, bool) {
18+
func (l *LauncherLookuper) Lookup(key string) (string, bool) {
1919
fileKey := key + "_FILE"
20-
if filePath, ok := f.baseLookuper.Lookup(fileKey); ok {
20+
if filePath, ok := l.baseLookuper.Lookup(fileKey); ok {
2121
// #nosec G304 -- filePath is controlled by system administrator via environment variable
2222
content, err := os.ReadFile(filePath)
2323
if err != nil {
@@ -27,5 +27,5 @@ func (f *LauncherLookuper) Lookup(key string) (string, bool) {
2727
return strings.TrimRight(string(content), "\n\r"), true
2828
}
2929

30-
return f.baseLookuper.Lookup(key)
30+
return l.baseLookuper.Lookup(key)
3131
}

0 commit comments

Comments
 (0)