Skip to content

Commit eef6c98

Browse files
committed
remove useless SetIsRequired (default is false)
1 parent eda3992 commit eef6c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharp.MongoDB.Bson/Serialization/FSharpTypeHelpers.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ module private Helpers =
100100
#if !NETSTANDARD2_1
101101
let nrtInfo = nrtContext.Create(propertyInfo)
102102
if nrtInfo.WriteState = NullabilityState.Nullable then
103-
memberMap.SetDefaultValue(null).SetIsRequired(false) |> ignore
103+
memberMap.SetDefaultValue(null) |> ignore
104104
#else
105105
()
106106
#endif

0 commit comments

Comments
 (0)