diff --git a/Assets/Mirror/Core/NetworkReaderExtensions.cs b/Assets/Mirror/Core/NetworkReaderExtensions.cs index 580490672..82424d3c6 100644 --- a/Assets/Mirror/Core/NetworkReaderExtensions.cs +++ b/Assets/Mirror/Core/NetworkReaderExtensions.cs @@ -335,11 +335,7 @@ public static Sprite ReadSprite(this NetworkReader reader) return Sprite.Create(texture, reader.ReadRect(), reader.ReadVector2()); } - public static DateTime ReadDateTime(this NetworkReader reader) - { - return DateTime.FromOADate(reader.ReadDouble()); - } - + public static DateTime ReadDateTime(this NetworkReader reader) => DateTime.FromOADate(reader.ReadDouble()); public static DateTime? ReadDateTimeNullable(this NetworkReader reader) => reader.ReadBool() ? ReadDateTime(reader) : default(DateTime?); } }