small tweaks

This commit is contained in:
Cameron Wichman 2023-06-14 10:09:39 -07:00
parent 3e2fc5b983
commit 973c0c3078
2 changed files with 6 additions and 6 deletions

View file

@ -480,8 +480,8 @@ func LookupEnvOrSecretString(key string, defaultVal string) string {
}
}
// returns file contents if file exists
var content string
if file, err := os.Open(val); err == nil {
var content string
scanner := bufio.NewScanner(file)
for scanner.Scan() {
content += scanner.Text()