From 9f662cd4760a8eea6a13d4ef304accd739ca97e8 Mon Sep 17 00:00:00 2001 From: shoemoney Date: Tue, 23 Jun 2026 12:47:50 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20drop=20unused=20param=20in=20dashbo?= =?UTF-8?q?ard=20online()=20(ponytail)=20=F0=9F=A6=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/hub/dashboard/dashboard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/hub/dashboard/dashboard.go b/internal/hub/dashboard/dashboard.go index ba47345..ed6c0e1 100644 --- a/internal/hub/dashboard/dashboard.go +++ b/internal/hub/dashboard/dashboard.go @@ -68,7 +68,7 @@ func (d *Dashboard) Emit(ev Event) { d.broker.publish(ev) } -func (d *Dashboard) online(deviceID, _ string, now int64) bool { +func (d *Dashboard) online(deviceID string, now int64) bool { d.mu.Lock() defer d.mu.Unlock() ts, ok := d.lastSeen[deviceID] @@ -138,7 +138,7 @@ func (d *Dashboard) handleState(w http.ResponseWriter, _ *http.Request) { var online int64 devices := make([]deviceJSON, 0, len(devs)) for _, dv := range devs { - on := d.online(dv.ID, dv.Name, now) + on := d.online(dv.ID, now) if on { online++ }