1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Use throw helper methods

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Salman Ahmed 2024-05-02 00:31:48 +03:00 committed by GitHub
parent 6d6f165884
commit b1aff91bba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ namespace osu.Game.Storyboards.Commands
/// <param name="repeatCount">The number of times the loop should repeat. Should be greater than zero. Zero means a single playback.</param>
public StoryboardLoopingGroup(double startTime, int repeatCount)
{
if (repeatCount < 0) throw new ArgumentException("Repeat count must be zero or above.", nameof(repeatCount));
ArgumentOutOfRangeException.ThrowIfNegative(repeatCount);
loopStartTime = startTime;
TotalIterations = repeatCount + 1;