From b99ddfdb7dd55254466eab90cc91b4962389af25 Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Mon, 20 Jun 2016 13:45:05 +0100 Subject: [PATCH] demo: Suppress unused var warning --- src/main/kotlin/com/r3corda/demos/TraderDemo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/r3corda/demos/TraderDemo.kt b/src/main/kotlin/com/r3corda/demos/TraderDemo.kt index d0c8b158d9..20fb0d73fe 100644 --- a/src/main/kotlin/com/r3corda/demos/TraderDemo.kt +++ b/src/main/kotlin/com/r3corda/demos/TraderDemo.kt @@ -201,7 +201,8 @@ fun runBuyer(node: Node, amount: Amount>) { } val future = if (node.isPreviousCheckpointsPresent) { - node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single().second + val (@Suppress("UNUSED_VARIABLE") buyer, future) = node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single() + future } else { // We use a simple scenario-specific wrapper protocol to make things happen. val buyer = TraderDemoProtocolBuyer(attachmentsPath, node.info.identity, amount)