Skip to content

Commit

Permalink
Refactor: use concat instead of +
Browse files Browse the repository at this point in the history
Co-authored-by: Ioanna Kokkini <ioannakok@users.noreply.github.com>
  • Loading branch information
bryophyta and ioannakok committed Jan 18, 2023
1 parent a7309bb commit 993fbd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/app/jobs/RebuildIndexJob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ class RebuildIndexJob(contentApiClient: ContentApiClient)(implicit executionCont
* Concatenating these three strings therefore allows us to use firstName and webTitle as fallbacks
* if lastName is None or "".
* */
val indexString = tag.lastName.getOrElse("").trim + tag.firstName.getOrElse("").trim + tag.webTitle
val indexString =
tag.lastName.getOrElse("").trim.concat(tag.firstName.getOrElse("").trim).concat(tag.webTitle)
tagPages.alphaIndexKey(indexString)
})

Expand Down

0 comments on commit 993fbd0

Please sign in to comment.