From df0c361513144c8f210b438852658b4cd9cf8cdf Mon Sep 17 00:00:00 2001 From: andy840119 Date: Tue, 9 May 2023 23:51:30 +0800 Subject: [PATCH] Fix the test case broken. --- osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs b/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs index ce043ae24..9c8f315be 100644 --- a/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs +++ b/osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs @@ -1,8 +1,6 @@ // Copyright (c) andy840119 . Licensed under the GPL Licence. // See the LICENCE file in the repository root for full licence text. -#nullable disable - using System; using System.Collections.Generic; using System.Linq; @@ -34,10 +32,10 @@ public KaraokeInputManager(RulesetInfo ruleset) UseParentInput = false; } - private IBeatmap beatmap; + private IBeatmap beatmap = null!; [BackgroundDependencyLoader] - private void load(KaraokeRulesetConfigManager config, IBindable> mods, IBindable beatmap, KaraokeSessionStatics session, EditorBeatmap editorBeatmap) + private void load(KaraokeRulesetConfigManager config, IBindable> mods, IBindable beatmap, KaraokeSessionStatics session, EditorBeatmap? editorBeatmap) { if (editorBeatmap != null) {