Skip to content

Commit

Permalink
Super simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
soygabimoreno committed Jan 5, 2024
1 parent bf36d8d commit bfe14c0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ private fun Article.getEpisodeUrl(): String {
return "$GABI_MORENO_WEB_BASE_URL/${getEpisodeNumber()}"
}

private fun Article.getEpisodeCoverUrl(): String {
return if (itunesArticleData?.image != null) {
this.itunesArticleData?.image!!
} else {
""
}
}
private fun Article.getEpisodeCoverUrl(): String = itunesArticleData?.image.orEmpty()

private fun Article.getEpisodeNumber(): String {
val episodeNumber = if (itunesArticleData != null && itunesArticleData?.episode != null) {
Expand Down

0 comments on commit bfe14c0

Please sign in to comment.