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() return emptyList()
} else { } else {
val set = TreeSet<String>() val set = TreeSet<String>()
InputStreamReader(url.openStream()).useLines { InputStreamReader(url.openStream()).useLines { sq ->
sq -> sq.forEach { sq.forEach { line ->
val service = it.trim() val service = line.trim()
set.add(service) set.add(service)
log.info("Supports: $service") log.info("Supports: $service")