diff --git a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt index ed987f7358..339fcb7978 100644 --- a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt +++ b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt @@ -145,7 +145,7 @@ class PersistentCertificateRequestStorage(private val database: CordaPersistence // Also, at the moment we assume that once the CSR is approved it cannot be rejected. // What if we approved something by mistake. val duplicates = session.createQuery(query).resultList.filter { - it.status !=RequestStatus.REJECTED + it.status != RequestStatus.REJECTED } return Pair(legalName, if (duplicates.isEmpty()) null else "Duplicate legal name")