Small var declaration cleanup

This commit is contained in:
Ben Gadbois 2017-01-11 19:19:12 +01:00
parent 881bee4e20
commit f761cee910
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ type TextFormatter struct {
func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
var b *bytes.Buffer var b *bytes.Buffer
var keys []string = make([]string, 0, len(entry.Data)) keys := make([]string, 0, len(entry.Data))
for k := range entry.Data { for k := range entry.Data {
keys = append(keys, k) keys = append(keys, k)
} }