Fix lint error
This commit is contained in:
parent
4e1957ca71
commit
197d430d15
|
@ -25,7 +25,7 @@ func getPlaylist(ds model.DataStore) http.HandlerFunc {
|
|||
constructor := func(ctx context.Context) rest.Repository {
|
||||
plsRepo := ds.Playlist(ctx)
|
||||
plsId := chi.URLParam(req, "playlistId")
|
||||
return plsRepo.(model.PlaylistRepository).Tracks(plsId)
|
||||
return plsRepo.Tracks(plsId)
|
||||
}
|
||||
|
||||
handler(constructor).ServeHTTP(res, req)
|
||||
|
|
Loading…
Reference in New Issue