Skip to content

Commit

Permalink
pass an empty options box to serializers - for easier null checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Jump committed Aug 3, 2020
1 parent ad6f8aa commit 6bacb92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dist/package.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

SET config=release
REM SET config=debug
REM SET config=release
SET config=debug

@Echo Packaging for %config%
nuget pack ..\uSync8.Core\uSync.Core.nuspec -build -OutputDirectory %1 -version %1 -properties "depends=%1;Configuration=%config%"
Expand Down
2 changes: 1 addition & 1 deletion uSync8.Core/Serialization/SyncSerializerRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected SyncSerializerRoot(ILogger logger)

[Obsolete("Serialize with options for better config support")]
public SyncAttempt<XElement> Serialize(TObject item)
=> Serialize(item, null);
=> Serialize(item, new SyncSerializerOptions());

public SyncAttempt<XElement> Serialize(TObject item, SyncSerializerOptions options)
{
Expand Down

0 comments on commit 6bacb92

Please sign in to comment.