Minor changes for Kotlin 1.1

This commit is contained in:
len
2017-03-03 18:18:06 +01:00
parent c00eaae62b
commit 5c67161dce
7 changed files with 15 additions and 15 deletions

View File

@@ -176,8 +176,7 @@ class YamlHttpSource(mappings: Map<*, *>) : HttpSource() {
val pages = mutableListOf<Page>()
// TODO lazy initialization in Kotlin 1.1
val document = Jsoup.parse(body, url)
val document by lazy { Jsoup.parse(body, url) }
with(map.pages) {
// Capture a list of values where page urls will be resolved.