mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Return result of local variable instead
This commit is contained in:
parent
0f0870c8b8
commit
6d5883abcb
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user