mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +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 {
|
||||
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)
|
||||
else if (it.error == null || it.error !is NotaryError)
|
||||
throw IllegalStateException("Received invalid result from Notary service '${notaryNode.identity}'")
|
||||
return it
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user