trim strVal

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
iosmanthus 2023-12-14 00:21:20 +08:00
parent 8f44eed8b8
commit 95f888cdc5
No known key found for this signature in database
GPG key ID: DEE5BAABFE092169

View file

@ -264,6 +264,7 @@ func recurseSecretKey(format FormatType, keys map[string]interface{}, wantedKey
if err != nil {
return "", fmt.Errorf("Cannot marshal the value of key '%s': %w", keyUntilNow, err)
}
strVal = bytes.TrimSpace(strVal)
return string(strVal), nil
}