Merge pull request #11358 from butuzov/refactor-strings

refactor: replace `(*bytes.Buffer).WriteString` with `(*bytes.Buffer).Write`
This commit is contained in:
Daniel Nephin 2021-10-20 14:19:38 -04:00 committed by GitHub
commit 8dbeebb031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}