Code review tweaks.

This commit is contained in:
Chris Rankin 2017-02-23 15:56:40 +00:00
parent 396fc43f11
commit 2664a2905c

View File

@ -19,9 +19,9 @@ class ServiceController : Controller() {
return emptyList()
} else {
val set = TreeSet<String>()
InputStreamReader(url.openStream()).useLines {
sq -> sq.forEach {
val service = it.trim()
InputStreamReader(url.openStream()).useLines { sq ->
sq.forEach { line ->
val service = line.trim()
set.add(service)
log.info("Supports: $service")