Skip to content

Commit 911b0db

Browse files
author
Divjot Arora
committed
move defaultEmptyInterfaceCodec declaration into var block
1 parent b9977e4 commit 911b0db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/bsoncodec/empty_interface_codec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import (
1515
"go.mongodb.org/mongo-driver/bson/primitive"
1616
)
1717

18-
var defaultEmptyInterfaceCodec = NewEmptyInterfaceCodec()
19-
2018
// EmptyInterfaceCodec is the Codec used for interface{} values.
2119
type EmptyInterfaceCodec struct {
2220
DecodeBinaryAsSlice bool
2321
}
2422

2523
var (
24+
defaultEmptyInterfaceCodec = NewEmptyInterfaceCodec()
25+
2626
_ ValueCodec = defaultEmptyInterfaceCodec
2727
_ typeDecoder = defaultEmptyInterfaceCodec
2828
)

0 commit comments

Comments
 (0)