diff options
Diffstat (limited to 'src/Ryujinx.Common/Pools/ThreadStaticArray.cs')
-rw-r--r-- | src/Ryujinx.Common/Pools/ThreadStaticArray.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Ryujinx.Common/Pools/ThreadStaticArray.cs b/src/Ryujinx.Common/Pools/ThreadStaticArray.cs index 21434a02..54df5041 100644 --- a/src/Ryujinx.Common/Pools/ThreadStaticArray.cs +++ b/src/Ryujinx.Common/Pools/ThreadStaticArray.cs @@ -9,10 +9,7 @@ namespace Ryujinx.Common.Pools public static ref T[] Get() { - if (_array == null) - { - _array = new T[1]; - } + _array ??= new T[1]; return ref _array; } |