mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
Add nakedret linter
This commit is contained in:
parent
03640ca93d
commit
2c214154dc
3 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ linters:
|
|||
- govet
|
||||
- ineffassign
|
||||
- misspell
|
||||
- nakedret
|
||||
- nilerr
|
||||
- rowserrcheck
|
||||
- staticcheck
|
||||
|
|
|
@ -159,7 +159,7 @@ func (a *artwork) getArtwork(ctx context.Context, id string, path string, size i
|
|||
reader, err = resizeImage(r, size, false)
|
||||
}
|
||||
|
||||
return
|
||||
return reader, err
|
||||
}
|
||||
|
||||
func resizeImage(reader io.Reader, size int, usePng bool) (io.ReadCloser, error) {
|
||||
|
|
|
@ -163,7 +163,7 @@ func selectTranscodingOptions(ctx context.Context, ds model.DataStore, mf *model
|
|||
format = "raw"
|
||||
bitRate = 0
|
||||
}
|
||||
return
|
||||
return format, bitRate
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue