demo: Remove warnings

This commit is contained in:
Andras Slemmer 2016-06-20 12:02:27 +01:00
parent 5de6e3f965
commit 780f2d7e82

View File

@ -201,8 +201,7 @@ fun runBuyer(node: Node, amount: Amount<Issued<Currency>>) {
}
val future = if (node.isPreviousCheckpointsPresent) {
val (buyer, future) = node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single()
future
node.smm.findStateMachines(TraderDemoProtocolBuyer::class.java).single().second
} else {
// We use a simple scenario-specific wrapper protocol to make things happen.
val buyer = TraderDemoProtocolBuyer(attachmentsPath, node.info.identity, amount)
@ -381,4 +380,4 @@ class TraderDemoProtocolSeller(val myAddress: HostAndPort,
return move.tx.outRef(0)
}
}
}