Skip to content

Commit

Permalink
Add an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
DHancock committed Aug 16, 2024
1 parent f6c86b9 commit ae65cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SudokuSolver/Views/PuzzleView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void FocusLastSelectedCell()
{
if (lastSelectedCell is not null)
{
bool focused = lastSelectedCell.Focus(FocusState.Programmatic);
Debug.WriteLine($"FocusLastSelectedCell success = {focused}");
Debug.Assert(lastSelectedCell.Parent is not null);
lastSelectedCell.Focus(FocusState.Programmatic);
}
}

Expand Down

0 comments on commit ae65cfe

Please sign in to comment.