Skip to content

Commit

Permalink
refactor: Remove (now) unnecessary ifEmpty block
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudemirovsky committed Nov 25, 2023
1 parent 1d7da4d commit 50df43e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class GogoAnime : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
?: return@parallelCatchingFlatMap emptyList()

getHosterVideos(className, serverUrl)
}.sort().ifEmpty { throw Exception("Failed to extract videos") }
}.sort()
}

private fun getHosterVideos(className: String, serverUrl: String): List<Video> {
Expand Down

0 comments on commit 50df43e

Please sign in to comment.