Skip to content

Commit f6157c9

Browse files
committed
ktlint!
1 parent 42e1392 commit f6157c9

File tree

1 file changed

+1
-4
lines changed
  • src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps

1 file changed

+1
-4
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps/Response.kt

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps
22

3-
data class Response<T>(
4-
val data: T,
5-
val errors: List<UpstreamApiError> = emptyList(),
6-
) {
3+
data class Response<T>(val data: T, val errors: List<UpstreamApiError> = emptyList()) {
74
companion object {
85
fun <T> merge(responses: List<Response<List<T>>>): Response<List<T>> = Response(data = responses.flatMap { it.data }, errors = responses.flatMap { it.errors })
96
}

0 commit comments

Comments
 (0)