Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmusin committed Feb 28, 2024
1 parent 06bd7ea commit 76f6c46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ class BacsArchiveService(
.retrieve()
.toEntity<String>()
.awaitSingle()
val content = response.body
if (!response.statusCode.is2xxSuccessful) {
throw BacsProblemUploadException("Code ${response.statusCode}, Message ${response.body}")
}
requireNotNull(content)

val content = requireNotNull(response.body)

if (content.contains("reserved: *$PENDING_IMPORT".toRegex())) return

Expand Down

0 comments on commit 76f6c46

Please sign in to comment.