Remove null checks on ruleset

Add a default ruleset to `OsuTestCase` to cover testing scenarios.
This commit is contained in:
Dean Herbert
2018-06-26 18:24:34 +09:00
parent 4dd12cedad
commit 4bcc05a7fc
7 changed files with 26 additions and 29 deletions

View File

@ -84,11 +84,8 @@ namespace osu.Game.Screens
[BackgroundDependencyLoader(true)]
private void load(BindableBeatmap beatmap, OsuGame osu, AudioManager audio, Bindable<RulesetInfo> ruleset)
{
if (beatmap != null)
Beatmap.BindTo(beatmap);
if (ruleset != null)
Ruleset.BindTo(ruleset);
Beatmap.BindTo(beatmap);
Ruleset.BindTo(ruleset);
if (osu != null)
{