From 5508b614ce38404151addddc8779e7f9c006c955 Mon Sep 17 00:00:00 2001
From: Half-Shot
Date: Mon, 20 Jan 2025 22:27:20 +0000
Subject: [PATCH] lint
---
src/entities/playable/worm.ts | 2 --
src/frontend/components/menus/online-play.tsx | 12 +++++---
src/scenarios/netGame.ts | 1 -
src/state/model.ts | 12 ++++----
src/state/player.ts | 28 +++++++++----------
src/state/recorder.ts | 10 +++++--
6 files changed, 34 insertions(+), 31 deletions(-)
diff --git a/src/entities/playable/worm.ts b/src/entities/playable/worm.ts
index 4e69537..6b76181 100644
--- a/src/entities/playable/worm.ts
+++ b/src/entities/playable/worm.ts
@@ -529,7 +529,6 @@ export class Worm extends PlayableEntity {
this.state.transition(InnerWormState.InactiveWaiting);
}
-
this.onFireWeapon(this, this.currentWeapon, opts).then((fireResult) => {
// Weapon has hit.
this.turnEndedReason = EndTurnReason.FiredWeapon;
@@ -681,7 +680,6 @@ export class Worm extends PlayableEntity {
return;
}
-
const falling = !this.isSinking && this.body.linvel().y > 4;
this.targettingGfx.visible =
diff --git a/src/frontend/components/menus/online-play.tsx b/src/frontend/components/menus/online-play.tsx
index 03885b1..962637b 100644
--- a/src/frontend/components/menus/online-play.tsx
+++ b/src/frontend/components/menus/online-play.tsx
@@ -48,9 +48,10 @@ function LoggedInView({
.catch((ex) => {
// TODO: Bubble up error.
logger.info("Failed to create game", ex);
- }).finally(() => {
- setInProgress(false);
})
+ .finally(() => {
+ setInProgress(false);
+ });
}, [client]);
useEffect(() => {
@@ -113,8 +114,11 @@ function LoggedInView({
) : null}
-