Return result of local variable instead

This commit is contained in:
Naxess 2021-04-27 01:19:38 +02:00
parent 0f0870c8b8
commit 6d5883abcb

View File

@ -95,9 +95,8 @@ namespace osu.Game.Beatmaps
int[] divisors = BindableBeatDivisor.VALID_DIVISORS; int[] divisors = BindableBeatDivisor.VALID_DIVISORS;
double smallestUnsnap = divisors.Min(getUnsnap); double smallestUnsnap = divisors.Min(getUnsnap);
int closestDivisor = divisors.FirstOrDefault(divisor => getUnsnap(divisor) == smallestUnsnap);
return closestDivisor; return divisors.FirstOrDefault(divisor => getUnsnap(divisor) == smallestUnsnap);
} }
IBeatmap IBeatmap.Clone() => Clone(); IBeatmap IBeatmap.Clone() => Clone();