From ba9689daa3c84eab196376fab1938739430f19e5 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Fri, 29 Apr 2022 10:09:34 -0700 Subject: [PATCH] Revert formatting change --- zapcore/entry.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/zapcore/entry.go b/zapcore/entry.go index edd6c136c..d91efe831 100644 --- a/zapcore/entry.go +++ b/zapcore/entry.go @@ -32,12 +32,14 @@ import ( "go.uber.org/zap/internal/exit" ) -var _cePool = sync.Pool{New: func() interface{} { - // Pre-allocate some space for cores. - return &CheckedEntry{ - cores: make([]Core, 4), - } -}} +var ( + _cePool = sync.Pool{New: func() interface{} { + // Pre-allocate some space for cores. + return &CheckedEntry{ + cores: make([]Core, 4), + } + }} +) func getCheckedEntry() *CheckedEntry { ce := _cePool.Get().(*CheckedEntry)