mirror of https://github.com/ppy/osu
Simplify expression.
This commit is contained in:
parent
7628cdf522
commit
462bbd02ba
|
@ -92,8 +92,6 @@ private T binarySearch<T>(SortedList<T> list, double time)
|
|||
|
||||
index = ~index;
|
||||
|
||||
if (index == list.Count)
|
||||
return list[list.Count - 1];
|
||||
return list[index - 1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue