Skip to content

Commit e7f740c

Browse files
author
Bingjie Liu
committed
Fix typo
1 parent 949e369 commit e7f740c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ class GetLicenceConditionService(
1515
val personResponse = getPersonService.execute(hmppsId = hmppsId)
1616
val crn = personResponse.data?.identifiers?.deliusCrn
1717

18-
var licenses: Response<List<Licence>> = Response(data = emptyList())
18+
var licences: Response<List<Licence>> = Response(data = emptyList())
1919

2020
if (crn != null) {
21-
licenses = createAndVaryLicenceGateway.getLicenceSummaries(id = crn)
22-
licenses.data.forEach {
21+
licences = createAndVaryLicenceGateway.getLicenceSummaries(id = crn)
22+
licences.data.forEach {
2323
val conditions = createAndVaryLicenceGateway.getLicenceConditions(it.id)
2424
it.conditions = conditions.data
2525
}
2626
}
2727

2828
return Response(
29-
data = licenses.data,
30-
errors = personResponse.errors + licenses.errors,
29+
data = licences.data,
30+
errors = personResponse.errors + licences.errors,
3131
)
3232
}
3333
}

0 commit comments

Comments
 (0)