From 9353d9442b7751f8d2199a271852ac2577059948 Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Mon, 5 Feb 2024 18:15:00 +0300 Subject: [PATCH] fix typo --- id/bson.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/id/bson.go b/id/bson.go index 4aa98c09..9d44c5a8 100644 --- a/id/bson.go +++ b/id/bson.go @@ -8,8 +8,7 @@ import ( ) func (id *ID) MarshalBSONValue() (bsontype.Type, []byte, error) { - data := id.String() - return bson.MarshalValue(data) + return bson.MarshalValue(id.String()) } func (id *ID) UnmarshalBSONValue(btype bsontype.Type, data []byte) error { -- GitLab