diff --git a/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt b/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt index 863d3992ac..c3b9f565c2 100644 --- a/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt +++ b/libs/commons/src/main/kotlin/uk/gov/justice/digital/hmpps/retry/Retry.kt @@ -23,7 +23,7 @@ fun retry( } if (throwable == null) { TimeUnit.MILLISECONDS.sleep(delay.toMillis() * count * count) - }else{ + } else { throw throwable!! } }