Skip to content

Commit 5688944

Browse files
linting
1 parent 3d30528 commit 5688944

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetInductionScheduleForPersonService.kt

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class GetInductionScheduleForPersonService(
1515
fun execute(hmppsId: String): Response<InductionSchedule> {
1616
val response = getPersonService.getNomisNumber(hmppsId = hmppsId)
1717

18-
//not a valid person
19-
if(response.errors.isNotEmpty()) {
18+
// not a valid person
19+
if (response.errors.isNotEmpty()) {
2020
return Response(InductionSchedule(), response.errors)
2121
}
2222

@@ -28,15 +28,15 @@ class GetInductionScheduleForPersonService(
2828

2929
fun getHistory(hmppsId: String): Response<InductionSchedules> {
3030
val response = getPersonService.getNomisNumber(hmppsId = hmppsId)
31-
//not a valid person
32-
if(response.errors.isNotEmpty()) {
31+
// not a valid person
32+
if (response.errors.isNotEmpty()) {
3333
return Response(InductionSchedules(listOf()), response.errors)
3434
}
35-
//found data will return it
35+
// found data will return it
3636
response.data?.nomisNumber?.let {
3737
return plpGateway.getInductionScheduleHistory(it)
3838
}
39-
//no data found return an empty list
39+
// no data found return an empty list
4040
return Response(InductionSchedules(listOf()), response.errors)
4141
}
4242
}

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetPersonService.kt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import org.springframework.beans.factory.annotation.Autowired
44
import org.springframework.stereotype.Service
55
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.gateways.PrisonerOffenderSearchGateway
66
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.gateways.ProbationOffenderSearchGateway
7-
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.HmppsId
87
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.NomisNumber
98
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.OffenderSearchResponse
109
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Person

0 commit comments

Comments
 (0)