More linting

This commit is contained in:
Rob Emery 2025-02-08 18:50:49 +00:00
parent bc38481a75
commit ea2942b73b
2 changed files with 3 additions and 4 deletions

View File

@ -256,7 +256,7 @@ func (cds *contentDirectoryService) readContainer(o object, host string) (ret []
return ret, nil
}
}
return
return ret, nil
}
func (cds *contentDirectoryService) doMediaFiles(tracks model.MediaFiles, basePath string, ret []interface{}, host string) ([]interface{}, error) {

View File

@ -253,13 +253,12 @@ func (s *SSDPServer) ssdpInterface(intf net.Interface) {
}
defer ssdpServer.Close()
log.Info(fmt.Sprintf("Started SSDP on %v", intf.Name))
log.Info("Started SSDP", "intf.Name", intf.Name)
stopped := make(chan struct{})
go func() {
defer close(stopped)
if err := ssdpServer.Serve(); err != nil {
log.Error(fmt.Sprintf("Err %q", intf.Name), err)
log.Error("Error in ssdpServer Serve", "intf.Name", intf.Name, err)
}
}()
select {