Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
Remove an unused parameter
  • Loading branch information
ejv2 committed Sep 23, 2024
1 parent 51f21c0 commit 96e2a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,4 @@ document.addEventListener("DOMContentLoaded", () => {
// Start tracking our data using Alpine
Alpine.store("game", plr)
Alpine.start()
})
})
2 changes: 1 addition & 1 deletion game/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96e2a58

Please sign in to comment.