mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
More linting
This commit is contained in:
parent
bc38481a75
commit
ea2942b73b
@ -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) {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user