Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed Apr 14, 2024
1 parent 3d0822f commit 293ceae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/routes/game/[gameId=id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@
picture: $positionsMessage.data.picture,
currSvgRef: $positionsMessage.data.svgRef,
};
// fallthrough
// fallthrough
case "move":
const svgRef = $positionsMessage.data.svgRef;

Check failure on line 29 in src/routes/game/[gameId=id]/+page.svelte

View workflow job for this annotation

GitHub Actions / eslint

Unexpected lexical declaration in case block
if (!data.claimedRooms.includes(svgRef)) {
data.claimedRooms.push(svgRef);
const pointIcon = map.getElmWhere("point", svgRef) as SVGImageElement;
if (pointIcon) map.removeIcon(pointIcon);
}
movePlayer($positionsMessage.data.userId, $positionsMessage.data.svgRef);
movePlayer(
$positionsMessage.data.userId,
$positionsMessage.data.svgRef,
);
break;
case "unclaim":
data.claimedRooms = data.claimedRooms.filter(
(claimedRoom) => !$positionsMessage.data.includes(claimedRoom)
(claimedRoom) => !$positionsMessage.data.includes(claimedRoom),
);
for (const svgRef of $positionsMessage.data) {
addPointIcon(svgRef);
Expand Down

0 comments on commit 293ceae

Please sign in to comment.