From b64a170b24a582f8b69481eac23df57dcc8f8483 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 16 Feb 2022 16:36:26 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Runtime/NetworkReader.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkReader.cs b/Assets/Mirror/Runtime/NetworkReader.cs index a6e773a8d..86eeef479 100644 --- a/Assets/Mirror/Runtime/NetworkReader.cs +++ b/Assets/Mirror/Runtime/NetworkReader.cs @@ -175,10 +175,8 @@ public ArraySegment ReadBytesSegment(int count) } [MethodImpl(MethodImplOptions.AggressiveInlining)] - public override string ToString() - { - return $"NetworkReader pos={Position} len={Length} buffer={BitConverter.ToString(buffer.Array, buffer.Offset, buffer.Count)}"; - } + public override string ToString() => + $"NetworkReader pos={Position} len={Length} buffer={BitConverter.ToString(buffer.Array, buffer.Offset, buffer.Count)}"; /// Reads any data type that mirror supports. Uses weaver populated Reader(T).read [MethodImpl(MethodImplOptions.AggressiveInlining)]