add docstring on ignored error

This commit is contained in:
Jake Champlin 2017-05-19 14:36:39 -04:00
parent 96e83817ef
commit dffa575591
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
1 changed files with 3 additions and 4 deletions

View File

@ -1886,10 +1886,9 @@ func normalizeJsonString(jsonString interface{}) (string, error) {
return s, err
}
bytes, err := json.Marshal(j)
if err != nil {
return s, err
}
// The error is intentionally ignored here to allow empty policies to passthrough validation.
// This covers any interpolated values
bytes, _ := json.Marshal(j)
return string(bytes[:]), nil
}