Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
Signed-off-by: mateusz <[email protected]>
  • Loading branch information
mateuszsokola committed Sep 1, 2024
1 parent 528b8c0 commit 6cb0c9b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions context/game-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,11 @@ export default function GameProvider({ children }: PropsWithChildren) {
return;
}

if (
x < maxIndex &&
tiles[board[x][y]].value === tiles[board[x + 1][y]].value
) {
if (tiles[board[x][y]].value === tiles[board[x + 1][y]].value) {
return;
}

if (
y < maxIndex &&
tiles[board[x][y]].value === tiles[board[x][y + 1]].value
) {
if (tiles[board[x][y]].value === tiles[board[x][y + 1]].value) {
return;
}
}
Expand Down

0 comments on commit 6cb0c9b

Please sign in to comment.