mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-05 11:37:31 +01:00
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()
|
||||
) : Serializable, GenericEntry() {
|
||||
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> {
|
||||
return entries.toList()
|
||||
|
Loading…
x
Reference in New Issue
Block a user