Skip to content

Commit

Permalink
Fix some more nullability inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Aug 9, 2023
1 parent 4e83245 commit 3501b7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace osu.Game.Tournament.Tests.Components
{
public partial class TestSceneDateTextBox : OsuManualInputManagerTestScene
{
private DateTextBox textBox;
private DateTextBox textBox = null!;

[SetUp]
public void Setup() => Schedule(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ namespace osu.Game.Tournament.Tests.Components
public partial class TestSceneTournamentModDisplay : TournamentTestScene
{
[Resolved]
private IAPIProvider api { get; set; }
private IAPIProvider api { get; set; } = null!;

[Resolved]
private IRulesetStore rulesets { get; set; }
private IRulesetStore rulesets { get; set; } = null!;

private FillFlowContainer<TournamentBeatmapPanel> fillFlow;
private FillFlowContainer<TournamentBeatmapPanel> fillFlow = null!;

[BackgroundDependencyLoader]
private void load()
Expand Down
4 changes: 2 additions & 2 deletions osu.Game.Tournament.Tests/NonVisual/DataLoadTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ public void TestUnavailableRuleset()
public partial class TestTournament : TournamentGameBase
{
private readonly bool resetRuleset;
private readonly Action runOnLoadComplete;
private readonly Action? runOnLoadComplete;

public new Task BracketLoadTask => base.BracketLoadTask;

public TestTournament(bool resetRuleset = false, [InstantHandle] Action runOnLoadComplete = null)
public TestTournament(bool resetRuleset = false, [InstantHandle] Action? runOnLoadComplete = null)
{
this.resetRuleset = resetRuleset;
this.runOnLoadComplete = runOnLoadComplete;
Expand Down

0 comments on commit 3501b7c

Please sign in to comment.