From 9b9b39046746981c8c631411c7373bcaa0ad7b35 Mon Sep 17 00:00:00 2001 From: "probation-integration-bot[bot]" <177347787+probation-integration-bot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:49:16 +0000 Subject: [PATCH] Formatting changes --- .../kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt | 2 +- .../justice/digital/hmpps/messaging/PomCaseMessageHandler.kt | 2 +- .../kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index 588f356d67..6d78206281 100644 --- a/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -49,7 +49,7 @@ class Handler( is CustodyDateChanged -> cduService.updateCustodyKeyDates(message.bookingId) is ProbationOffenderEvent -> when (notification.eventType) { "SENTENCE_CHANGED", - -> personRepository.findNomsIdByCrn(message.crn)?.let { cduService.updateCustodyKeyDates(it) } + -> personRepository.findNomsIdByCrn(message.crn)?.let { cduService.updateCustodyKeyDates(it) } else -> throw IllegalArgumentException("Unexpected offender event type: ${notification.eventType}") } diff --git a/projects/manage-pom-cases-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/PomCaseMessageHandler.kt b/projects/manage-pom-cases-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/PomCaseMessageHandler.kt index f1a34a325a..7872924264 100644 --- a/projects/manage-pom-cases-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/PomCaseMessageHandler.kt +++ b/projects/manage-pom-cases-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/PomCaseMessageHandler.kt @@ -66,7 +66,7 @@ class PomCaseMessageHandler( is ProbationOffenderEvent -> when (notification.eventType) { "SENTENCE_CHANGED", - -> personRepository.findNomsSingleCustodial(message.crn)?.let { + -> personRepository.findNomsSingleCustodial(message.crn)?.let { try { handoverDatesChanged.process( HandoverMessage( diff --git a/projects/prison-identifier-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/prison-identifier-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index 4369200545..95c514bedd 100644 --- a/projects/prison-identifier-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/prison-identifier-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -74,7 +74,7 @@ class Handler( is OffenderEvent -> when (notification.eventType) { "OFFENDER_DETAILS_CHANGED", // changes to name, date of birth, identifiers in Delius "SENTENCE_CHANGED", // changes to sentence status and dates in Delius - -> prisonMatchingService + -> prisonMatchingService .matchAndUpdateIdentifiers(message.crn) .also { telemetryService.logResult(it) }