style: 2 lines if

This commit is contained in:
Paul Pacheco 2019-04-06 07:01:48 -05:00
parent eb1654f26e
commit 87e962b52b

View File

@ -58,7 +58,8 @@ public void Write(string value)
// (note: original HLAPI would write "" for null strings, but if a string is null on the server then it
// should also be null on the client)
writer.Write(value != null);
if (value != null) writer.Write(value);
if (value != null)
writer.Write(value);
}
// for byte arrays with consistent size, where the reader knows how many to read