Skip to content

Commit

Permalink
Remove unused local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Jul 16, 2023
1 parent d25a039 commit a42992d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions osu.Game.Tests/Visual/Navigation/TestSceneScreenNavigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -728,17 +728,14 @@ public void TestForceExitWithOperationInProgress()
AddStep("set hold delay to 0", () => Game.LocalConfig.SetValue(OsuSetting.UIHoldActivationDelay, 0.0));
AddUntilStep("wait for dialog overlay", () => Game.ChildrenOfType<DialogOverlay>().SingleOrDefault() != null);

ProgressNotification progressNotification = null!;

AddStep("start ongoing operation", () =>
{
progressNotification = new ProgressNotification
Game.Notifications.Post(new ProgressNotification
{
Text = "Something is still running",
Progress = 0.5f,
State = ProgressNotificationState.Active,
};
Game.Notifications.Post(progressNotification);
});
});

AddStep("attempt exit", () =>
Expand Down

0 comments on commit a42992d

Please sign in to comment.