From 0132b1d9edfc547c6a99305af3dd70a6cab87d57 Mon Sep 17 00:00:00 2001 From: Alina Boghiu Date: Fri, 2 Feb 2024 15:15:45 +0000 Subject: [PATCH] formatting --- applications/app/controllers/ImageContentController.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/applications/app/controllers/ImageContentController.scala b/applications/app/controllers/ImageContentController.scala index 3c3539d3f84a..d56d2ccc39ad 100644 --- a/applications/app/controllers/ImageContentController.scala +++ b/applications/app/controllers/ImageContentController.scala @@ -4,18 +4,15 @@ import com.gu.contentapi.client.model.v1.{Block, ItemResponse, Content => ApiCon import com.gu.contentapi.client.model.{Direction, FollowingSearchQuery, SearchQuery} import common._ import conf.Configuration.contentApi -import conf.switches.Switches import contentapi.ContentApiClient import implicits.{AppsFormat, JsonFormat} import model._ import model.dotcomrendering.{DotcomRenderingDataModel, PageType} -import pages.ContentHtmlPage import play.api.libs.json._ import play.api.libs.ws.WSClient import play.api.mvc._ import renderers.DotcomRenderingService import services.ImageQuery -import services.dotcomrendering.RemoteRender import views.support.RenderOtherStatus import scala.concurrent.Future @@ -39,7 +36,7 @@ class ImageContentController( override def renderItem(path: String)(implicit request: RequestHeader): Future[Result] = image(Edition(request), path).flatMap { case Right((content, mainBlock)) => remoteRender(content, mainBlock) - case Left(result) => Future.successful(RenderOtherStatus(result)) + case Left(result) => Future.successful(RenderOtherStatus(result)) } private def getDCRJson(content: ImageContentPage, pageType: PageType, mainBlock: Option[Block])(implicit