From 3b4c2e8c5767d3bbc1a1963a4ffc956d2dc0fcfb Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 8 Feb 2018 23:54:35 +0100 Subject: [style] nicer looking --- bitmask/events.go | 1 - main.go | 1 - systray.go | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bitmask/events.go b/bitmask/events.go index 5808d51..c7a5679 100644 --- a/bitmask/events.go +++ b/bitmask/events.go @@ -57,7 +57,6 @@ func (b *Bitmask) eventsHandler() { if err != nil { break } - log.Println(msg[0]) if msg[0][:len(statusEvent)] != statusEvent { continue } diff --git a/main.go b/main.go index 76343eb..b7faa91 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,6 @@ const ( ) func main() { - // TODO: do I need to bootstrap the provider? conf, err := parseConfig() if err != nil { log.Fatal(err) diff --git a/systray.go b/systray.go index b160c03..750b7af 100644 --- a/systray.go +++ b/systray.go @@ -62,8 +62,7 @@ func (bt *bmTray) onReady() { go func() { ch := bt.bm.GetStatusCh() - status, err := bt.bm.GetStatus() - if err != nil { + if status, err := bt.bm.GetStatus(); err != nil { log.Printf("Error getting status: %v", err) } else { bt.changeStatus(status) -- cgit v1.2.3