From 96e2a58def792531b4d3538c72872900a4c62f59 Mon Sep 17 00:00:00 2001 From: Ethan Marshall Date: Mon, 23 Sep 2024 10:36:55 +0100 Subject: [PATCH] Fix linter warnings Remove an unused parameter --- frontend/src/play.ts | 2 +- game/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/play.ts b/frontend/src/play.ts index c163588..a74ed97 100644 --- a/frontend/src/play.ts +++ b/frontend/src/play.ts @@ -285,4 +285,4 @@ document.addEventListener("DOMContentLoaded", () => { // Start tracking our data using Alpine Alpine.store("game", plr) Alpine.start() -}) +}) \ No newline at end of file diff --git a/game/client.go b/game/client.go index 0dec3ea..39379af 100644 --- a/game/client.go +++ b/game/client.go @@ -134,7 +134,7 @@ func (c Client) SendMessage(verb string, body interface{}) { func (c Client) Open() { c.lastPong = time.Now() c.conn.SetReadDeadline(c.lastPong.Add(PongInterval).Add(PongTimeout)) - c.conn.SetPongHandler(func(appData string) error { + c.conn.SetPongHandler(func(_ string) error { latency := time.Now().Add(-PongInterval).Sub(c.lastPong) if latency < 0 { latency = 0 - latency