summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Fox <[email protected]>2021-09-08 08:44:00 +0100
committerPeter Fox <[email protected]>2021-09-08 08:44:00 +0100
commit5247e30957b491c1bf42db7af0976280cc7b6c36 (patch)
treee295db2c8412fd387e3b4035b2938b979de3e827
parent5f425fab3dc707eae589c670e9780770cc5a8a95 (diff)
Fix variable assignment
-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) {