From 6c570390a4d27a6f74f6db48a8ad571e17f657e2 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sun, 17 Jan 2021 19:31:37 -0500 Subject: [PATCH] Wrong variable --- ui/tui.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/tui.go b/ui/tui.go index 1855026..1e838f4 100644 --- a/ui/tui.go +++ b/ui/tui.go @@ -128,7 +128,8 @@ func RoomTUI(client *mautrix.Client, roomID id.RoomID, elections *election.Elect if err != nil { panic(err) } - el, ok := elections.GetOk(eventID) + var ok bool + el, ok = elections.GetOk(eventID) for !ok { time.Sleep(10 * time.Millisecond) el, ok = elections.GetOk(eventID) -- 2.38.4