1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Simplify dictionary construction

This commit is contained in:
Dan Balasescu 2022-12-12 11:40:15 +09:00
parent 5e8d75bbbf
commit 6e41efede8

View File

@ -95,9 +95,9 @@ namespace osu.Game.Rulesets.Scoring
get get
{ {
if (!beatmapApplied) if (!beatmapApplied)
throw new InvalidOperationException($"Cannot access maximum scoring values before calling {nameof(ApplyBeatmap)}."); throw new InvalidOperationException($"Cannot access maximum statistics before calling {nameof(ApplyBeatmap)}.");
return maximumResultCounts.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); return new Dictionary<HitResult, int>(maximumResultCounts);
} }
} }