Simplifying
This commit is contained in:
parent
521b3fb05b
commit
15d58e52a5
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,7 @@ public class SudokuController {
|
|||
int row = view.getSelectedRow();
|
||||
int col = view.getSelectedColumn();
|
||||
|
||||
String inputText = view.getCellValue(row, col);
|
||||
int value = Integer.parseInt(inputText);
|
||||
int value = Integer.parseInt(view.getCellValue(row, col));
|
||||
// Check if the input is legal and update the model and view
|
||||
if (model.isLegal(row, col, value)) {
|
||||
model.set(row, col, value);
|
||||
|
|
Loading…
Reference in a new issue