Skip to content

Commit

Permalink
remove console.warns/return statements that will never be hit
Browse files Browse the repository at this point in the history
Co-Authored-By: absidue <[email protected]>
  • Loading branch information
ChunkyProgrammer and absidue committed Feb 26, 2025
1 parent 1af3bed commit 2081cb0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,6 @@ export default defineComponent({
},

getPlaylistsInvidiousMore: function () {
if (this.playlistContinuationData === null) {
console.warn('There are no more playlists available for this channel')
return
}

getInvidiousChannelPlaylists(this.id, this.playlistSortBy, this.playlistContinuationData).then((response) => {
this.playlistContinuationData = response.continuation || null
this.latestPlaylists = this.latestPlaylists.concat(response.playlists)
Expand Down Expand Up @@ -1518,11 +1513,6 @@ export default defineComponent({
},

channelInvidiousReleasesMore: function () {
if (this.releaseContinuationData === null) {
console.warn('There are no more releases available for this channel')
return
}

getInvidiousChannelReleases(this.id, this.releaseContinuationData).then((response) => {
this.releaseContinuationData = response.continuation || null
this.latestReleases = this.latestReleases.concat(response.playlists)
Expand Down Expand Up @@ -1620,11 +1610,6 @@ export default defineComponent({
},

channelInvidiousPodcastsMore: function () {
if (this.podcastContinuationData === null) {
console.warn('There are no more podcasts available for this channel')
return
}

getInvidiousChannelPodcasts(this.id, this.podcastContinuationData).then((response) => {
this.podcastContinuationData = response.continuation || null
this.latestPodcasts = this.latestPodcasts.concat(response.playlists)
Expand Down Expand Up @@ -1722,11 +1707,6 @@ export default defineComponent({
},

channelInvidiousCoursesMore: function () {
if (this.coursesContinuationData === null) {
console.warn('There are no more courses available for this channel')
return
}

getInvidiousChannelCourses(this.id, this.coursesContinuationData).then((response) => {
this.coursesContinuationData = response.continuation || null
this.latestCourses = this.latestCourses.concat(response.playlists)
Expand Down

0 comments on commit 2081cb0

Please sign in to comment.