Fix lint errors

This commit is contained in:
Deluan
2020-07-31 14:22:03 -04:00
committed by Deluan Quintão
parent 338cbacb79
commit 3d4f4b4e2b
3 changed files with 2 additions and 16 deletions
+2 -2
View File
@@ -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
}