aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs')
-rw-r--r--Ryujinx.Common/Collections/IntrusiveRedBlackTreeImpl.cs6
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)
{