Skip to content

Commit

Permalink
fix: SOF-1094 Refactor to simpler implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
LindvedKrvang committed Nov 29, 2022
1 parent 3bd497e commit 12f55b7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/mse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,7 @@ export class MSERep extends EventEmitter implements MSE {
}

private async doesPlaylistExist(playlistID: string, profileName: string): Promise<boolean> {
let playlist
try {
playlist = await this.getPlaylist(playlistID.toUpperCase())
} catch (error) {
return false
}
const playlist = await this.getPlaylist(playlistID.toUpperCase()).catch(() => undefined)
if (!playlist) {
return false
}
Expand Down

0 comments on commit 12f55b7

Please sign in to comment.