From 882c9f04ce1012ee734d5e15d764fdd1603096e7 Mon Sep 17 00:00:00 2001 From: "Joseph.Dundon" Date: Thu, 31 Oct 2024 09:29:31 +0000 Subject: [PATCH] PI-2575 Remove 'is convicted result flag' check --- .../kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index e2f070b59d..c086c051d1 100644 --- a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -33,7 +33,7 @@ class Handler( .filter { defendant -> defendant.offences.any { offence -> offence.judicialResults.any { judicialResult -> - judicialResult.isConvictedResult == true && judicialResult.label == "Remanded in custody" + judicialResult.label == "Remanded in custody" } } }