Skip to content

Commit

Permalink
ci: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jul 1, 2024
1 parent 3fc302b commit d0675b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions internal/manager/device_manager_avahi.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ func (dm *DeviceManager) Start() {
if err != nil {
log.Err(err).Msgf("GetAPIVersion() failed: ")
}
log.Tracef("GetAPIVersion(): %s", i)
log.Tracef("GetAPIVersion(): %v", i)

hn, err := server.ResolveHostName(avahi.InterfaceUnspec, avahi.ProtoUnspec, fqdn, avahi.ProtoUnspec, 0)
if err != nil {
log.Err(err).Msgf("ResolveHostName() failed: ")
}
log.Tracef("ResolveHostName: %s", hn)
log.Tracef("ResolveHostName: %v", hn)

sb, err := server.ServiceBrowserNew(avahi.InterfaceUnspec, avahi.ProtoUnspec, mdnsService, mdnsServiceDomain, 0)
if err != nil {
Expand All @@ -81,7 +81,7 @@ func (dm *DeviceManager) Start() {
for {
select {
case service = <-sb.AddChannel:
log.Tracef("ServiceBrowser ADD: %s", service)
log.Tracef("ServiceBrowser ADD: %v", service)

service, err := server.ResolveService(service.Interface, service.Protocol, service.Name,
service.Type, service.Domain, avahi.ProtoUnspec, 0)
Expand Down Expand Up @@ -112,9 +112,9 @@ func (dm *DeviceManager) Start() {
}
}
case service = <-sb.RemoveChannel:
log.Tracef("ServiceBrowser REMOVE: %s", service)
log.Tracef("ServiceBrowser REMOVE: %v", service)
case service = <-sbPairable.AddChannel:
log.Tracef("ServiceBrowser ADD: %s", service)
log.Tracef("ServiceBrowser ADD: %v", service)

service, err := server.ResolveService(service.Interface, service.Protocol, service.Name,
service.Type, service.Domain, avahi.ProtoUnspec, 0)
Expand All @@ -138,7 +138,7 @@ func (dm *DeviceManager) Start() {
}

case service = <-sbPairable.RemoveChannel:
log.Tracef("ServiceBrowser REMOVE: %s", service)
log.Tracef("ServiceBrowser REMOVE: %v", service)
macAddr := strings.Split(service.Name, "@")[0]
udid := fmt.Sprintf("fff%sfff", macAddr)
dm.devices.Delete(udid)
Expand Down
2 changes: 1 addition & 1 deletion internal/manager/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (t *InstallManager) Close() {
t.cancel = nil
}
if t.em != nil {
t.em.CloseWait()
_ = t.em.CloseWait()
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/manager/pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (t *PairManager) Close() {
t.cancel = nil
}
if t.em != nil {
t.em.CloseWait()
_ = t.em.CloseWait()
}
}

Expand Down

0 comments on commit d0675b3

Please sign in to comment.