From 2664a2905ce188b5026d380b96abc6cc2a4074df Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Thu, 23 Feb 2017 15:56:40 +0000 Subject: [PATCH] Code review tweaks. --- .../kotlin/net/corda/demobench/model/ServiceController.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/model/ServiceController.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/model/ServiceController.kt index 229f8e52b4..0094217d54 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/model/ServiceController.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/model/ServiceController.kt @@ -19,9 +19,9 @@ class ServiceController : Controller() { return emptyList() } else { val set = TreeSet() - 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")