Add nakedret linter

This commit is contained in:
Deluan 2022-11-30 14:16:30 -05:00
parent 03640ca93d
commit 2c214154dc
3 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ linters:
- govet
- ineffassign
- misspell
- nakedret
- nilerr
- rowserrcheck
- staticcheck

View File

@ -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) {

View File

@ -163,7 +163,7 @@ func selectTranscodingOptions(ctx context.Context, ds model.DataStore, mf *model
format = "raw"
bitRate = 0
}
return
return format, bitRate
}
var (