jet another silly fix

This commit is contained in:
djmil 2023-11-28 23:14:07 +01:00
parent 1cb0a45e51
commit e933a97c1f

View File

@ -58,10 +58,9 @@ public class CommitTrx implements SubFlow<SecureHash> {
* notarises the transaction and persists the transaction to each party's vault.
*/
FlowSession counterpartySession = flowMessaging.initiateFlow(this.counterpartyName);
FlowSession custodySession = (this.custodyName != null) ? flowMessaging.initiateFlow(this.custodyName) : null;
List<FlowSession> sessionsList = Arrays.asList(counterpartySession, custodySession);
List<FlowSession> sessionsList = (this.custodyName != null)
? Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName), flowMessaging.initiateFlow(this.custodyName))
: Arrays.asList(flowMessaging.initiateFlow(this.counterpartyName);
System.out.println("sessionsList size " + sessionsList.size());