Skip to content

Commit

Permalink
fix(playerapi.ts): remove comment with deprecated 'eslint' rule
Browse files Browse the repository at this point in the history
The recent upgrade of '@spotify/web-scripts' removed a deprecated 'eslint' rule. This caused build
failures when linting.
  • Loading branch information
adamgrieger committed Jul 20, 2020
1 parent d739304 commit 41afe34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/apis/PlayerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ export class PlayerApi {
* @param options Optional request information.
*/
play(options?: PlayOptions): Promise<void> {
// eslint-disable-next-line @typescript-eslint/camelcase
const { device_id, ...bodyParams } = options ?? {};

return this.http.put<void>(
'/me/player/play',
options && {
// eslint-disable-next-line @typescript-eslint/camelcase
...(device_id && { params: { device_id } }),
...(Object.keys(bodyParams).length && { data: bodyParams }),
},
Expand Down

0 comments on commit 41afe34

Please sign in to comment.