Skip to content

Commit f2bdb3a

Browse files
committed
chore: change code comment and fix extra space in log
1 parent fbe3429 commit f2bdb3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func main() {
2929

3030
name := names[0]
3131
player := mpris.New(conn, name)
32-
fmt.Println("Getting information from ", player.GetIdentity())
32+
fmt.Println("Getting information from", player.GetIdentity())
3333

3434
var rules = []string{
3535
"type='signal',member='PropertiesChanged',path='/org/mpris/MediaPlayer2',interface='org.freedesktop.DBus.Properties'",
@@ -52,7 +52,7 @@ func main() {
5252

5353
client.Login("902662551119224852")
5454
// the reason why we add a subtracted Duration is because
55-
// time.Sub returns a Duration but i need a Time
55+
// time.Sub returns a Duration but this function needs a Time for a timestamp
5656
// confusing huh? thanks go
5757
setPresence(initialMetadata, time.Now().Add(-time.Duration(elapsed) * time.Microsecond))
5858
c := make(chan *dbus.Message, 10)

0 commit comments

Comments
 (0)