Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
gcapizzi committed Jul 31, 2021
1 parent d353981 commit 86a7726
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/game.ts
Expand Up @@ -72,10 +72,6 @@ export class Game implements immutable.ValueObject {
}

move(source: Square, destination: Square): Game {
if (this.board.get(source) === undefined) {
return this;
}

if (this.validDestinations(source).includes(destination)) {
return this.movePiece(source, destination);
}
Expand Down

0 comments on commit 86a7726

Please sign in to comment.