demo: Suppress unused var warning

This commit is contained in:
Andras Slemmer 2016-06-20 13:45:05 +01:00
parent 780f2d7e82
commit b99ddfdb7d

View File

@ -201,7 +201,8 @@ fun runBuyer(node: Node, amount: Amount<Issued<Currency>>) {
}
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)