Skip to content

Commit 58c466b

Browse files
Fix logic error in JsonDataWriter
1 parent 921796e commit 58c466b

File tree

1 file changed

+2
-2
lines changed
  • src/Razor/src/Microsoft.AspNetCore.Razor.ProjectEngineHost/Serialization

1 file changed

+2
-2
lines changed

src/Razor/src/Microsoft.AspNetCore.Razor.ProjectEngineHost/Serialization/JsonDataWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public void Write(string propertyName, bool value)
5454

5555
public void WriteIfNotTrue(string propertyName, bool value)
5656
{
57-
if (value)
57+
if (!value)
5858
{
5959
Write(propertyName, value);
6060
}
6161
}
6262

6363
public void WriteIfNotFalse(string propertyName, bool value)
6464
{
65-
if (!value)
65+
if (value)
6666
{
6767
Write(propertyName, value);
6868
}

0 commit comments

Comments
 (0)