Skip to content

Commit b5a19de

Browse files
committed
Merge pull request #81 from mischief/gofmt
go fmt ./...
2 parents 2d21675 + 2b730eb commit b5a19de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dbus/set.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ func (s *set) Contains(value string) (exists bool) {
3131
return
3232
}
3333

34-
func (s *set) Length() (int) {
34+
func (s *set) Length() int {
3535
return len(s.data)
3636
}
3737

3838
func (s *set) Values() (values []string) {
39-
for val, _ := range s.data {
39+
for val, _ := range s.data {
4040
values = append(values, val)
41-
}
42-
return
41+
}
42+
return
4343
}
4444

45-
func newSet() (*set) {
46-
return &set{make(map[string] bool)}
45+
func newSet() *set {
46+
return &set{make(map[string]bool)}
4747
}

dbus/subscription.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (c *Conn) SubscribeUnits(interval time.Duration) (<-chan map[string]*UnitSt
105105
// SubscribeUnitsCustom is like SubscribeUnits but lets you specify the buffer
106106
// size of the channels, the comparison function for detecting changes and a filter
107107
// function for cutting down on the noise that your channel receives.
108-
func (c *Conn) SubscribeUnitsCustom(interval time.Duration, buffer int, isChanged func(*UnitStatus, *UnitStatus) bool, filterUnit func (string) bool) (<-chan map[string]*UnitStatus, <-chan error) {
108+
func (c *Conn) SubscribeUnitsCustom(interval time.Duration, buffer int, isChanged func(*UnitStatus, *UnitStatus) bool, filterUnit func(string) bool) (<-chan map[string]*UnitStatus, <-chan error) {
109109
old := make(map[string]*UnitStatus)
110110
statusChan := make(chan map[string]*UnitStatus, buffer)
111111
errChan := make(chan error, buffer)

0 commit comments

Comments
 (0)