From 409eac092d623263c83bfc580db2d91cb32f2316 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 18 Feb 2021 14:39:59 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Runtime/NetworkReaderPool.cs | 6 +----- Assets/Mirror/Runtime/NetworkWriterPool.cs | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkReaderPool.cs b/Assets/Mirror/Runtime/NetworkReaderPool.cs index 7804747c9..9591c1518 100644 --- a/Assets/Mirror/Runtime/NetworkReaderPool.cs +++ b/Assets/Mirror/Runtime/NetworkReaderPool.cs @@ -9,11 +9,7 @@ public sealed class PooledNetworkReader : NetworkReader, IDisposable { internal PooledNetworkReader(byte[] bytes) : base(bytes) {} internal PooledNetworkReader(ArraySegment segment) : base(segment) {} - - public void Dispose() - { - NetworkReaderPool.Recycle(this); - } + public void Dispose() => NetworkReaderPool.Recycle(this); } /// diff --git a/Assets/Mirror/Runtime/NetworkWriterPool.cs b/Assets/Mirror/Runtime/NetworkWriterPool.cs index f98ab22b0..94f3055e6 100644 --- a/Assets/Mirror/Runtime/NetworkWriterPool.cs +++ b/Assets/Mirror/Runtime/NetworkWriterPool.cs @@ -7,10 +7,7 @@ namespace Mirror /// public sealed class PooledNetworkWriter : NetworkWriter, IDisposable { - public void Dispose() - { - NetworkWriterPool.Recycle(this); - } + public void Dispose() => NetworkWriterPool.Recycle(this); } ///