Skip to content

Commit

Permalink
Fix conversion warning in tests introduced by Go 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Oct 19, 2020
1 parent 62cc3c1 commit 0175ec4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bees/notificationbee/notificationbee_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
// Package notificationbee is a Bee that can trigger desktop notifications.
package notificationbee

import dbus "github.com/guelfey/go.dbus"
import (
"fmt"

dbus "github.com/guelfey/go.dbus"
)

// Run executes the Bee's event loop.
func (mod *NotificationBee) execAction(text string, urgency uint32) {
Expand All @@ -40,6 +44,6 @@ func (mod *NotificationBee) execAction(text string, urgency uint32) {
map[string]dbus.Variant{"urgency": dbus.MakeVariant(urgency)}, int32(5000))

if call.Err != nil {
mod.Logln("(" + string(urgency) + ") Failed to print message: " + text)
mod.Logln("(" + fmt.Sprint(urgency) + ") Failed to print message: " + text)
}
}

0 comments on commit 0175ec4

Please sign in to comment.