perf: avoid unnecessary byte/string conversion (#10012)
We can use alternative functions to avoid unnecessary byte/string conversion calls and reduce allocations. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
parent
19de8af350
commit
d02ba28b96
4 changed files with 8 additions and 8 deletions
|
|
@ -68,7 +68,7 @@ var _ = framework.DescribeSetting("OCSP", func() {
|
|||
|
||||
var pemCertBuffer bytes.Buffer
|
||||
pemCertBuffer.Write(leafCert)
|
||||
pemCertBuffer.Write([]byte("\n"))
|
||||
pemCertBuffer.WriteString("\n")
|
||||
pemCertBuffer.Write(intermediateCa)
|
||||
|
||||
f.EnsureSecret(&corev1.Secret{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue