summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
Diffstat (limited to 'systray.go')
-rw-r--r--systray.go3
1 files changed, 1 insertions, 2 deletions
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)