Skip to content

Commit

Permalink
[DLS-10533] Removed redundant response (breaking the ATs and ITs)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthdas03 committed Oct 24, 2024
1 parent cc70879 commit b2437ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/uk/gov/hmrc/helptosave/connectors/DESConnector.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ class DESConnectorImpl @Inject()(http: HttpClientV2, servicesConfig: ServicesCon
http.get(itmpThresholdURL)(hc.copy(authorization = None)).transform(_
.addHttpHeaders(appConfig.desHeaders:_*))
.execute[Either[UpstreamErrorResponse, HttpResponse]]
.map(_.fold(_ => Left(UpstreamErrorResponse("error occurred",500)),
_ => Right(HttpResponse(200)))
)
}

}

0 comments on commit b2437ae

Please sign in to comment.