mirror of https://github.com/readrops/Readrops.git
Use apply instead of let
This commit is contained in:
parent
24134161ec
commit
10e38374a0
|
@ -20,12 +20,10 @@ object OPMLMatcher {
|
|||
|
||||
val feeds = arrayListOf<Feed>()
|
||||
outline.outlines?.forEach { feedOutline ->
|
||||
val feed = Feed().let {
|
||||
it.name = feedOutline.title
|
||||
it.url = feedOutline.xmlUrl
|
||||
it.siteUrl = feedOutline.htmlUrl
|
||||
|
||||
it
|
||||
val feed = Feed().apply {
|
||||
name = feedOutline.title
|
||||
url = feedOutline.xmlUrl
|
||||
siteUrl = feedOutline.htmlUrl
|
||||
}
|
||||
|
||||
feeds.add(feed)
|
||||
|
|
Loading…
Reference in New Issue