Skip to content

Commit

Permalink
Remove printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Apr 17, 2024
1 parent 807d0bf commit 876c631
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/app/model/dotcomrendering/ElementsEnhancer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ object ElementsEnhancer {
// Also look for "03feb394-a17d-4430-8384-edd1891e0d01"

def enhanceElement(element: JsValue): JsValue = {
println(">>> enhanceElement")
val elementWithId = element.as[JsObject] ++ Json.obj("elementId" -> java.util.UUID.randomUUID.toString)
val elementType = elementWithId.value("_type").as[String]
val elementIsList = elementType == "model.dotcomrendering.pageElements.ListBlockElement"
Expand All @@ -24,8 +23,6 @@ object ElementsEnhancer {
}
elementWithId ++ Json.obj("items" -> listItemsWithIds)
} else if (elementIsTimeline) {
println(">>> enhanceElement : elementIsTimeline")

val sectionsList = elementWithId.value("sections").as[List[JsObject]]
val sectionListWithIds = sectionsList.map { section =>
val eventList = section.value("events").as[List[JsObject]]
Expand All @@ -34,9 +31,7 @@ object ElementsEnhancer {
val bodyListWithIds = bodyList.value.map(currentBlock => {
enhanceElement(currentBlock)
})

event ++ Json.obj("body" -> bodyListWithIds)

}
section ++ Json.obj("events" -> eventListWithIds)
}
Expand Down

0 comments on commit 876c631

Please sign in to comment.