Skip to content

Commit

Permalink
reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterITA committed Jul 1, 2024
1 parent 27e4e42 commit 99eeafa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -887,10 +887,7 @@ final case class EServicesApiServiceImpl(
"docs" -> Json.arr(
descriptor.docs.map(doc =>
Json
.obj(
"prettyName" -> Json.fromString(doc.prettyName),
"path" -> Json.fromString(s"documents/${doc.name}")
)
.obj("prettyName" -> Json.fromString(doc.prettyName), "path" -> Json.fromString(s"documents/${doc.name}"))
): _* // `: _*` is used to convert Seq to varargs for Json.arr
),
"audience" -> Json.arr(descriptor.audience.map(Json.fromString): _*),
Expand Down

0 comments on commit 99eeafa

Please sign in to comment.