Skip to content

Commit c0e7119

Browse files
committed
fix: don't write anything if value is null
1 parent 14962e1 commit c0e7119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElectronNET.API/Converter/TitleBarOverlayConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public override void WriteJson(JsonWriter writer, TitleBarOverlay value, JsonSer
2626
{
2727
if (value is null)
2828
{
29-
writer.WriteNull();
3029
return;
3130
}
31+
3232
var @bool = (bool?)value;
3333
if (@bool.HasValue)
3434
{

0 commit comments

Comments
 (0)