mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
CA2208: create exceptions correctly.
This commit is contained in:
@ -15,7 +15,7 @@ namespace osu.Game.Screens.Play
|
||||
: base(() => new ReplayPlayer(score))
|
||||
{
|
||||
if (score.Replay == null)
|
||||
throw new ArgumentNullException(nameof(score.Replay), $"{nameof(score)} must have a non-null {nameof(score.Replay)}.");
|
||||
throw new ArgumentException($"{nameof(score)} must have a non-null {nameof(score.Replay)}.", nameof(score));
|
||||
|
||||
scoreInfo = score.ScoreInfo;
|
||||
}
|
||||
|
Reference in New Issue
Block a user