Some clean up

This commit is contained in:
ganfra 2023-04-25 11:17:05 +02:00
parent c32c4c31b0
commit c9370315ad
4 changed files with 8 additions and 4 deletions

View file

@ -33,4 +33,7 @@ internal class MediaKeyer : Keyer<MediaResolver.Meta> {
}
}
private fun MediaResolver.Meta.toKey() = "${url}_${kind}"
private fun MediaResolver.Meta.toKey(): String? {
if (url.isNullOrBlank()) return null
return "${url}_${kind}"
}