Suppress errchkjson false positive

pull/158/head
Jeremy Rand 2 years ago
parent 7e46b7d256
commit 9c7589d64f
No known key found for this signature in database
GPG Key ID: EB03139A459DD06E

@ -79,7 +79,9 @@ func (dehydrated *DehydratedCertificate) SerialNumber(name string) ([]byte, erro
func (dehydrated *DehydratedCertificate) String() string {
output := []interface{}{1, dehydrated.PubkeyB64, dehydrated.NotBeforeScaled, dehydrated.NotAfterScaled, dehydrated.SignatureAlgorithm, dehydrated.SignatureB64}
binOutput, _ := json.Marshal(output)
// We don't need to check for errors, because json.Marshal is guaranteed to
// succeed for integer/string types.
binOutput, _ := json.Marshal(output) //nolint:errchkjson
return string(binOutput)
}

Loading…
Cancel
Save