Skip to content

Commit

Permalink
Use String.isNullOrBlank() instead of String.isNullOrEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Aug 30, 2024
1 parent e813378 commit 365c40c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface SRGMediaMetadata : SRGIdentifierMetadata, SRGImageMetadata, SRGMetadat
fun getDownloadUri(quality: Quality = Quality.HD): String? {
return when (quality) {
Quality.SD -> podcastSdUrl
Quality.HD, Quality.HQ -> if (podcastHdUrl.isNullOrEmpty()) podcastSdUrl else podcastHdUrl
Quality.HD, Quality.HQ -> if (podcastHdUrl.isNullOrBlank()) podcastSdUrl else podcastHdUrl
}
}

Expand Down

0 comments on commit 365c40c

Please sign in to comment.