Skip to content

Commit a5dabb4

Browse files
author
Brandon Philips
committed
chore(dbus): cleanup comment and formatting nips
1 parent 055c48c commit a5dabb4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dbus/dbus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Conn struct {
3838
dispatch map[string]func(dbus.Signal)
3939
}
4040

41-
// New() establishes a connection to the system bus and auths.
41+
// New() establishes a connection to the system bus and authenticates.
4242
func New() (*Conn, error) {
4343
c := new(Conn)
4444

@@ -71,7 +71,7 @@ func (c *Conn) initConnection() error {
7171

7272
c.sysobj = c.sysconn.Object("org.freedesktop.systemd1", dbus.ObjectPath("/org/freedesktop/systemd1"))
7373

74-
// Setup the listener on jobs so that can get completions
74+
// Setup the listeners on jobs so that we can get completions
7575
c.sysconn.BusObject().Call("org.freedesktop.DBus.AddMatch", 0,
7676
"type='signal', interface='org.freedesktop.systemd1.Manager', member='JobRemoved'")
7777
c.initSubscription()

dbus/methods_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,4 @@ func TestGetUnitProperties(t *testing.T) {
121121
if names[0] != "system.slice" {
122122
t.Fatal("unexpected wants for /")
123123
}
124-
125124
}

0 commit comments

Comments
 (0)