Use new ArgumentNullException.ThrowIfNull throw-helper API

This commit is contained in:
Berkan Diler
2022-12-22 21:27:59 +01:00
parent 867a1963be
commit 08d2fbeb8e
27 changed files with 36 additions and 54 deletions

View File

@ -84,8 +84,8 @@ namespace osu.Game.Rulesets.Osu.Replays
{
public int Compare(ReplayFrame? f1, ReplayFrame? f2)
{
if (f1 == null) throw new ArgumentNullException(nameof(f1));
if (f2 == null) throw new ArgumentNullException(nameof(f2));
ArgumentNullException.ThrowIfNull(f1);
ArgumentNullException.ThrowIfNull(f2);
return f1.Time.CompareTo(f2.Time);
}