diff options
author | Berkan Diler <berkan.diler1@ingka.ikea.com> | 2022-12-27 20:27:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 20:27:11 +0100 |
commit | 0d3b82477ecbf7128340b6725a79413427c68748 (patch) | |
tree | 2d62c68e38a3c4c79ef7cc1d92700617a40e70ca /Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs | |
parent | 470be03c2ff22346a1f0ae53fa25f53c4d1790b5 (diff) |
Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163)1.1.493
Diffstat (limited to 'Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs')
-rw-r--r-- | Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs index 267aeec3..bcb2e2a2 100644 --- a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs +++ b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs @@ -92,10 +92,8 @@ namespace Ryujinx.Common.Collections /// <exception cref="ArgumentNullException"><paramref name="node"/> is null</exception> protected static T Minimum(T node) { - if (node == null) - { - throw new ArgumentNullException(nameof(node)); - } + ArgumentNullException.ThrowIfNull(node); + T tmp = node; while (tmp.Left != null) { |