1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Update comment for more clarity

Signed-off-by: Lance Rushing <lance@lancerushing.com>
This commit is contained in:
Lance Rushing
2023-12-14 15:31:41 -08:00
committed by Felix Fontein
parent b67a83d408
commit c2852846f5

View File

@@ -230,7 +230,7 @@ func EncodeNewLines(m map[string]interface{}) {
}
}
// DecodeNonStrings will look for known keys that are not strings and decode to the appropriate type
// DecodeNonStrings will look for known metadata keys that are not strings and decode to the appropriate type
func DecodeNonStrings(m map[string]interface{}) {
if v, ok := m["mac_only_encrypted"]; ok {
m["mac_only_encrypted"] = false
@@ -240,7 +240,7 @@ func DecodeNonStrings(m map[string]interface{}) {
}
}
// EncodeNonStrings will look for known keys that are not strings and will encode it to strings
// EncodeNonStrings will look for known metadata keys that are not strings and will encode it to strings
func EncodeNonStrings(m map[string]interface{}) {
if v, found := m["mac_only_encrypted"]; found {
if vBool, ok := v.(bool); ok {