diff options
author | Peter Fox <[email protected]> | 2021-09-08 08:44:00 +0100 |
---|---|---|
committer | Peter Fox <[email protected]> | 2021-09-08 08:44:00 +0100 |
commit | 5247e30957b491c1bf42db7af0976280cc7b6c36 (patch) | |
tree | e295db2c8412fd387e3b4035b2938b979de3e827 /plugins | |
parent | 5f425fab3dc707eae589c670e9780770cc5a8a95 (diff) |
Fix variable assignment
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/logger/zap_adapter.go | 4 |
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) { |