From e58268e3391d3e0c9ce5382cff80f612cc556721 Mon Sep 17 00:00:00 2001 From: Toastie Date: Thu, 16 May 2024 23:14:41 +1200 Subject: [PATCH] Fixed a few bugs and updated some dependencies --- src/Ellie.Marmalade/Ellie.Marmalade.csproj | 2 +- src/EllieBot.Coordinator/EllieBot.Coordinator.csproj | 2 +- src/EllieBot.Coordinator/Services/CoordinatorRunner.cs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Ellie.Marmalade/Ellie.Marmalade.csproj b/src/Ellie.Marmalade/Ellie.Marmalade.csproj index b01a911..db33025 100644 --- a/src/Ellie.Marmalade/Ellie.Marmalade.csproj +++ b/src/Ellie.Marmalade/Ellie.Marmalade.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/EllieBot.Coordinator/EllieBot.Coordinator.csproj b/src/EllieBot.Coordinator/EllieBot.Coordinator.csproj index af90db3..b4f964d 100644 --- a/src/EllieBot.Coordinator/EllieBot.Coordinator.csproj +++ b/src/EllieBot.Coordinator/EllieBot.Coordinator.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/EllieBot.Coordinator/Services/CoordinatorRunner.cs b/src/EllieBot.Coordinator/Services/CoordinatorRunner.cs index de870ca..780afc4 100644 --- a/src/EllieBot.Coordinator/Services/CoordinatorRunner.cs +++ b/src/EllieBot.Coordinator/Services/CoordinatorRunner.cs @@ -417,8 +417,7 @@ namespace EllieBot.Coordinator { lock (locker) { - if (shardId >= _shardStatuses.Length) - throw new ArgumentOutOfRangeException(nameof(shardId)); + ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(shardId, _shardStatuses.Length); return _shardStatuses[shardId]; }