summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/logger/zap_adapter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/logger/zap_adapter.go b/plugins/logger/zap_adapter.go
index 9b5637fb..1c68cf25 100644
--- a/plugins/logger/zap_adapter.go
+++ b/plugins/logger/zap_adapter.go
@@ -19,8 +19,8 @@ func NewZapAdapter(zapLogger *zap.Logger) *ZapAdapter {
}
func separateFields(keyVals []interface{}) ([]zap.Field, []interface{}) {
- fields := []zap.Field{}
- pairedKeyVals := []interface{}{}
+ var fields []zap.Field
+ var pairedKeyVals []interface{}
for key := range keyVals {
switch value := keyVals[key].(type) {