Skip to content

Commit

Permalink
clear linting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
casualjim committed Mar 27, 2023
1 parent b36a490 commit 608cbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bson.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (id ObjectId) MarshalBSONValue() (bsontype.Type, []byte, error) {
// BSON value representation of themselves. The BSON bytes and type can be
// assumed to be valid. UnmarshalBSONValue must copy the BSON value bytes if it
// wishes to retain the data after returning.
func (id *ObjectId) UnmarshalBSONValue(tpe bsontype.Type, data []byte) error {
func (id *ObjectId) UnmarshalBSONValue(_ bsontype.Type, data []byte) error {
var oid bsonprim.ObjectID
copy(oid[:], data)
*id = ObjectId(oid)
Expand Down

0 comments on commit 608cbc9

Please sign in to comment.