mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
CA2208: create exceptions correctly.
This commit is contained in:
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Difficulty.Utils
|
||||
public LimitedCapacityStack(int capacity)
|
||||
{
|
||||
if (capacity < 0)
|
||||
throw new ArgumentOutOfRangeException();
|
||||
throw new ArgumentOutOfRangeException(nameof(capacity));
|
||||
|
||||
this.capacity = capacity;
|
||||
array = new T[capacity];
|
||||
|
Reference in New Issue
Block a user