Skip to content

Commit

Permalink
Change to return null instead of an empty collection if not recognised
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLewis-digirati committed Aug 23, 2024
1 parent feab213 commit 02f0b27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class CollectionItemConverter : ReadOnlyConverter<ICollectionItem>
{
nameof(Collection) => new Collection(),
nameof(Manifest) => new Manifest(),
_ => new Collection()
_ => null
};

serializer.Populate(jsonObject.CreateReader(), collectionItem);
Expand Down

0 comments on commit 02f0b27

Please sign in to comment.