Fix compiler warning
This commit is contained in:
parent
0a2e7358fa
commit
d83cf0917c
|
@ -15,7 +15,12 @@ data class Share(
|
||||||
private val entries: MutableList<Entry> = mutableListOf()
|
private val entries: MutableList<Entry> = mutableListOf()
|
||||||
) : Serializable, GenericEntry() {
|
) : Serializable, GenericEntry() {
|
||||||
override val name: String?
|
override val name: String?
|
||||||
get() = url?.let { urlPattern.matcher(url).replaceFirst("$1") }
|
get() {
|
||||||
|
if (url != null) {
|
||||||
|
return urlPattern.matcher(url!!).replaceFirst("$1")
|
||||||
|
}
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
fun getEntries(): List<Entry> {
|
fun getEntries(): List<Entry> {
|
||||||
return entries.toList()
|
return entries.toList()
|
||||||
|
|
Loading…
Reference in New Issue