mirror of
https://github.com/corda/corda.git
synced 2025-03-21 03:25:43 +00:00
demo: Suppress unused var warning
This commit is contained in:
parent
780f2d7e82
commit
b99ddfdb7d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user