mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 14:55:02 +00:00
refactor: replace (*bytes.Buffer).WriteString with (*bytes.Buffer).Write
This PR change one method of bytes.Buffer struct package with a similar one, as result - code produce less allocations on heap.
This commit is contained in:
parent
e938e0afe0
commit
f9c290890f
@ -80,7 +80,7 @@ func (f *prettyFormatter) FormatAuthMethod(method *api.ACLAuthMethod) (string, e
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Error formatting auth method configuration: %s", err)
|
||||
}
|
||||
buffer.WriteString(string(output))
|
||||
buffer.Write(output)
|
||||
|
||||
return buffer.String(), nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user