Maint: prefer empty string comparison

This commit is contained in:
Quentin McGaw (desktop)
2021-07-23 17:39:38 +00:00
parent 3c44214d01
commit b23eb8f29d
8 changed files with 10 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ func (r *reader) getFromEnvOrSecretFile(envKey string, compulsory bool, retroKey
value = string(b)
value = cleanSuffix(value)
if compulsory && len(value) == 0 {
if compulsory && value == "" {
return "", ErrSecretFileIsEmpty
}