Remove superfluous lamba parameter names.

This commit is contained in:
Chris Rankin 2017-02-06 17:44:12 +00:00
parent ba5f4add18
commit 455cdba5d9
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class Explorer(val explorerController: ExplorerController) : AutoCloseable {
private val executor = Executors.newSingleThreadExecutor()
private var process: Process? = null
fun open(config: NodeConfig, onExit: (c: NodeConfig) -> Unit) {
fun open(config: NodeConfig, onExit: (NodeConfig) -> Unit) {
val p = explorerController.execute(
"--host=localhost",
"--port=${config.artemisPort}",

View File

@ -72,7 +72,7 @@ private fun <T> valueFor(any: T): ConfigValue? = ConfigValueFactory.fromAnyRef(a
private fun addressValueFor(port: Int) = valueFor("localhost:$port")
private fun <T> optional(path: String, obj: T?, body: (c: Config, o: T) -> Config): Config {
private fun <T> optional(path: String, obj: T?, body: (Config, T) -> Config): Config {
val config = ConfigFactory.empty()
return if (obj == null) config else body(config, obj).atPath(path)
}

View File

@ -8,7 +8,7 @@ import net.corda.demobench.model.NodeConfig
import net.corda.node.services.messaging.CordaRPCClient
import org.slf4j.LoggerFactory
class NodeRPC(config: NodeConfig, invoke: (ops: CordaRPCOps) -> Unit): AutoCloseable {
class NodeRPC(config: NodeConfig, invoke: (CordaRPCOps) -> Unit): AutoCloseable {
private val log = LoggerFactory.getLogger(NodeRPC::class.java)
companion object Data {