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
|
|
@ -197,7 +197,7 @@ func dumpSecretAuthMap(filename string, secret *api.Secret) error {
|
|||
for user, pass := range secret.Data {
|
||||
builder.WriteString(user)
|
||||
builder.WriteString(":")
|
||||
builder.WriteString(string(pass))
|
||||
builder.Write(pass)
|
||||
builder.WriteString("\n")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue