mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Remove null checks on ruleset
Add a default ruleset to `OsuTestCase` to cover testing scenarios.
This commit is contained in:
@ -41,6 +41,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
private ScheduledDelegate showScoresDelegate;
|
||||
|
||||
private IEnumerable<Score> scores;
|
||||
|
||||
public IEnumerable<Score> Scores
|
||||
{
|
||||
get { return scores; }
|
||||
@ -196,9 +197,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
||||
{
|
||||
this.api = api;
|
||||
|
||||
if (parentRuleset != null)
|
||||
ruleset.BindTo(parentRuleset);
|
||||
|
||||
ruleset.BindTo(parentRuleset);
|
||||
ruleset.ValueChanged += _ => updateScores();
|
||||
|
||||
if (api != null)
|
||||
|
Reference in New Issue
Block a user