mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 08:38:50 +01:00
Fix lint errors
This commit is contained in:
parent
338cbacb79
commit
3d4f4b4e2b
3 changed files with 2 additions and 16 deletions
|
|
@ -165,7 +165,7 @@ func getTranscoding(ctx context.Context) (format string, bitRate int) {
|
|||
|
||||
// This seems to be duplicated, but it is an initial step into merging `engine` and the `subsonic` packages,
|
||||
// In the future there won't be any conversion to/from `engine. Entry` anymore
|
||||
func ChildFromMediaFile(ctx context.Context, mf *model.MediaFile) responses.Child {
|
||||
func ChildFromMediaFile(ctx context.Context, mf model.MediaFile) responses.Child {
|
||||
child := responses.Child{}
|
||||
child.Id = mf.ID
|
||||
child.Title = mf.Title
|
||||
|
|
@ -209,7 +209,7 @@ func ChildFromMediaFile(ctx context.Context, mf *model.MediaFile) responses.Chil
|
|||
func ChildrenFromMediaFiles(ctx context.Context, mfs model.MediaFiles) []responses.Child {
|
||||
children := make([]responses.Child, len(mfs))
|
||||
for i, mf := range mfs {
|
||||
children[i] = ChildFromMediaFile(ctx, &mf)
|
||||
children[i] = ChildFromMediaFile(ctx, mf)
|
||||
}
|
||||
return children
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue