Skip to content

Commit

Permalink
Revert formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Apr 29, 2022
1 parent 3baaae2 commit ba9689d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions zapcore/entry.go
Expand Up @@ -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)
Expand Down

0 comments on commit ba9689d

Please sign in to comment.