mirror of
https://github.com/corda/corda.git
synced 2025-05-31 22:50:53 +00:00
Added a rendundant condition to a branch for readability
This commit is contained in:
parent
2c422bebd3
commit
324b2be06c
@ -57,7 +57,7 @@ class NotaryProtocol(private val wtx: WireTransaction,
|
|||||||
response.validate {
|
response.validate {
|
||||||
if (it.sig != null) validateSignature(it.sig, wtx.serialized)
|
if (it.sig != null) validateSignature(it.sig, wtx.serialized)
|
||||||
else if (it.error is NotaryError.Conflict) it.error.conflict.verified()
|
else if (it.error is NotaryError.Conflict) it.error.conflict.verified()
|
||||||
else if (it.error !is NotaryError)
|
else if (it.error == null || it.error !is NotaryError)
|
||||||
throw IllegalStateException("Received invalid result from Notary service '${notaryNode.identity}'")
|
throw IllegalStateException("Received invalid result from Notary service '${notaryNode.identity}'")
|
||||||
return it
|
return it
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user