Skip to content

Commit

Permalink
Fix null Options to "{}"
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Mar 27, 2024
1 parent d538b82 commit ffe8535
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1092,13 +1092,10 @@ private static Build Map(Engine engine, TranslationBuildConfigDto source)

private static Dictionary<string, object>? Map(object? source)
{
if (source is null)
return null;

try
{
return JsonSerializer.Deserialize<Dictionary<string, object>>(
source.ToString() ?? "{}",
source?.ToString() ?? "{}",
ObjectJsonSerializerOptions
);
}
Expand Down

0 comments on commit ffe8535

Please sign in to comment.