We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8712d93 commit 116c0e5Copy full SHA for 116c0e5
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetPersonService.kt
@@ -32,11 +32,9 @@ class GetPersonService(
32
"probationOffenderSearch" to probationResponse.data,
33
)
34
35
- val errors = (prisonResponse?.errors ?: emptyList()) + probationResponse.errors
36
-
37
return Response(
38
data = data,
39
- errors = errors,
+ errors = (prisonResponse?.errors ?: emptyList()) + probationResponse.errors,
40
41
}
42
0 commit comments