Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alinaboghiu committed Feb 2, 2024
1 parent 11abbfa commit 8be1592
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions applications/app/controllers/ImageContentController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8be1592

Please sign in to comment.