Skip to content

Commit 01415d9

Browse files
committed
fix code style.
1 parent f735c0f commit 01415d9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

MLAPI/NetworkingManagerComponents/Binary/BitReader.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public object ReadObjectPacked(Type type)
127127
return ReadRotation(3);
128128
if (type == typeof(char))
129129
return ReadCharPacked();
130-
if (type == typeof(IBitWritable)) {
130+
if (type == typeof(IBitWritable))
131+
{
131132
object instance = Activator.CreateInstance(type);
132133
((IBitWritable)instance).Read(this);
133134
return instance;

MLAPI/NetworkingManagerComponents/Binary/IBitWritable.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
using System.Linq;
44
using System.Text;
55

6-
namespace MLAPI.Serialization {
7-
interface IBitWritable {
6+
namespace MLAPI.Serialization
7+
{
8+
interface IBitWritable
9+
{
810
void Write(BitWriter writer);
911
void Read(BitReader reader);
1012
}

0 commit comments

Comments
 (0)