Skip to content

Commit

Permalink
remove useless SetIsRequired (default is false)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchalamet committed Jan 1, 2025
1 parent eda3992 commit eef6c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.MongoDB.Bson/Serialization/FSharpTypeHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module private Helpers =
#if !NETSTANDARD2_1
let nrtInfo = nrtContext.Create(propertyInfo)
if nrtInfo.WriteState = NullabilityState.Nullable then
memberMap.SetDefaultValue(null).SetIsRequired(false) |> ignore
memberMap.SetDefaultValue(null) |> ignore
#else
()
#endif

0 comments on commit eef6c98

Please sign in to comment.