summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 23:54:35 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-09 00:00:37 +0100
commit3b4c2e8c5767d3bbc1a1963a4ffc956d2dc0fcfb (patch)
tree83d7f458778aef2fbc6cc474defbbcee1c4afc17 /systray.go
parent9e22b94dffe4670fd3e0738beff259d8391b270d (diff)
[style] nicer looking
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)