We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b78552 commit 5f7ca90Copy full SHA for 5f7ca90
.golangci.yml
@@ -16,7 +16,6 @@ linters:
16
enable-all: true
17
disabled-checks:
18
- hugeParam
19
- - unlambda
20
- unnamedResult
21
revive:
22
rules:
config/config.go
@@ -361,9 +361,7 @@ func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error {
361
}
362
363
func substituteEnvVariables(value string) (string, error) {
364
- result := os.Expand(value, func(s string) string {
365
- return os.Getenv(s)
366
- })
+ result := os.Expand(value, os.Getenv)
367
if result == "" {
368
return "", errors.New(value + " environment variable not found")
369
0 commit comments