mirror of https://github.com/status-im/consul.git
Merge pull request #11358 from butuzov/refactor-strings
refactor: replace `(*bytes.Buffer).WriteString` with `(*bytes.Buffer).Write`
This commit is contained in:
commit
8dbeebb031
|
@ -80,7 +80,7 @@ func (f *prettyFormatter) FormatAuthMethod(method *api.ACLAuthMethod) (string, e
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("Error formatting auth method configuration: %s", err)
|
return "", fmt.Errorf("Error formatting auth method configuration: %s", err)
|
||||||
}
|
}
|
||||||
buffer.WriteString(string(output))
|
buffer.Write(output)
|
||||||
|
|
||||||
return buffer.String(), nil
|
return buffer.String(), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue