Skip to content

Commit a9d23e1

Browse files
authored
Update struct_codec.go
1 parent cc9ada3 commit a9d23e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bson/bsoncodec/struct_codec.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ func (sc *StructCodec) isZero(i interface{}) bool {
231231
return true
232232
}
233233

234-
if v.Kind() == reflect.Ptr && v.IsNil() {
235-
return true
236-
}
237-
238234
if z, ok := v.Interface().(Zeroer); ok && (v.Kind() != reflect.Ptr || !v.IsNil()) {
239235
return z.IsZero()
240236
}

0 commit comments

Comments
 (0)