chore: coding style (#3960)

This commit is contained in:
Kevin Wan
2024-03-03 00:17:38 +08:00
committed by GitHub
parent b624b966f0
commit 25821bdee6
4 changed files with 18 additions and 18 deletions

View File

@@ -79,16 +79,16 @@ func TestWithRegistryForTimestampRegisterType(t *testing.T) {
return nil
}
registerType := []RegisterType{
codecs := []TypeCodec{
{
ValueType: reflect.TypeOf(time.Time{}),
Encoder: mongoDateTimeEncoder,
Decoder: mongoDateTimeDecoder,
},
}
WithRegistry(registerType...)(opts)
WithTypeCodec(codecs...)(opts)
for _, v := range registerType {
for _, v := range codecs {
// Validate Encoder
enc, err := opts.Registry.LookupEncoder(v.ValueType)
if err != nil {