From f761cee9106ce559af64826f9c66a73f38e51c27 Mon Sep 17 00:00:00 2001 From: Ben Gadbois Date: Wed, 11 Jan 2017 19:19:12 +0100 Subject: [PATCH] Small var declaration cleanup --- text_formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_formatter.go b/text_formatter.go index 9114b3c..3fcd7f0 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -58,7 +58,7 @@ type TextFormatter struct { func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { 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 { keys = append(keys, k) }