Skip to content

Commit

Permalink
Fix lint issue for golangci-lint 1.62.0 (#6322)
Browse files Browse the repository at this point in the history
This fixes the sole linting issue required to allow the upgrade to
golangci-lint 1.62.0 in
#6320.
  • Loading branch information
dmathieu authored Nov 13, 2024
1 parent 717e1db commit 72585fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/otelzap/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type objectEncoder struct {
cur *namespace
}

func newObjectEncoder(len int) *objectEncoder {
keyval := make([]log.KeyValue, 0, len)
func newObjectEncoder(n int) *objectEncoder {
keyval := make([]log.KeyValue, 0, n)
m := &namespace{
attrs: keyval,
}
Expand Down

0 comments on commit 72585fd

Please sign in to comment.