Fix lint error

This commit is contained in:
Deluan 2021-06-20 12:07:34 -04:00
parent 4e1957ca71
commit 197d430d15
1 changed files with 1 additions and 1 deletions

View File

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