mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
Fix some typos in comments (#2949)
Signed-off-by: oftenoccur <ezc5@sina.com>
This commit is contained in:
parent
8720bd154f
commit
bcb71b85c0
@ -131,7 +131,7 @@ func (a *cacheWarmer) doCacheImage(ctx context.Context, id model.ArtworkID) erro
|
|||||||
|
|
||||||
r, _, err := a.artwork.Get(ctx, id, consts.UICoverArtSize)
|
r, _, err := a.artwork.Get(ctx, id, consts.UICoverArtSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error cacheing id='%s': %w", id, err)
|
return fmt.Errorf("error caching id='%s': %w", id, err)
|
||||||
}
|
}
|
||||||
defer r.Close()
|
defer r.Close()
|
||||||
_, err = io.Copy(io.Discard, r)
|
_, err = io.Copy(io.Discard, r)
|
||||||
|
@ -68,7 +68,7 @@ func (ps *playbackServer) initDeviceStatus(devices []conf.AudioDeviceDefinition,
|
|||||||
defaultDeviceFound := false
|
defaultDeviceFound := false
|
||||||
|
|
||||||
if defaultDevice == "" {
|
if defaultDevice == "" {
|
||||||
// if there are no devices given and no default device, we create a sythetic device named "auto"
|
// if there are no devices given and no default device, we create a synthetic device named "auto"
|
||||||
if len(devices) == 0 {
|
if len(devices) == 0 {
|
||||||
pbDevices[0] = *NewPlaybackDevice(ps, "auto", "auto")
|
pbDevices[0] = *NewPlaybackDevice(ps, "auto", "auto")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user