From 36a46a00779edbe001cb1e754b28b32d38862bdd Mon Sep 17 00:00:00 2001 From: "siva.isikella" <7499500+sivaprakashiv@users.noreply.github.com> Date: Wed, 7 Jul 2021 14:05:32 +0100 Subject: [PATCH] APID-192 - removed extra curly braces --- .../apiplatformoutboundsoap/connectors/OutboundConnector.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/uk/gov/hmrc/apiplatformoutboundsoap/connectors/OutboundConnector.scala b/app/uk/gov/hmrc/apiplatformoutboundsoap/connectors/OutboundConnector.scala index 7ce8a1e..02aa5f0 100644 --- a/app/uk/gov/hmrc/apiplatformoutboundsoap/connectors/OutboundConnector.scala +++ b/app/uk/gov/hmrc/apiplatformoutboundsoap/connectors/OutboundConnector.scala @@ -47,12 +47,11 @@ class OutboundConnector @Inject()( case Left(UpstreamErrorResponse(_, statusCode, _, _)) => logger.warn(requestLogMessage(statusCode)) statusCode - case Right(response: HttpResponse) => { + case Right(response: HttpResponse) => if (response.status != HttpStatus.SC_ACCEPTED) { logger.warn(requestLogMessage(response.status)) } response.status - } } }