Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonaNedeljkovic committed Jun 24, 2023
1 parent b28e57c commit e7b5351
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ private[elasticsearch] final case class GeoPolygon[S](
"geo_polygon" -> Obj(
Chunk(
Some(field -> Obj("points" -> Arr(points.map(Json.Str(_)): _*))),
queryName.map(qn => "_name" -> qn.toJson),
validationMethod.map(vm => "validation_method" -> vm.toString.toJson)
queryName.map("_name" -> _.toJson),
validationMethod.map("validation_method" -> _.toString.toJson)
).flatten: _*
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,7 @@ object ElasticQuerySpec extends ZIOSpecDefault {
validationMethod = None
)
)
) &&
assert(queryString)(
) && assert(queryString)(
equalTo(
GeoPolygon[TestDocument](
field = "stringField",
Expand Down Expand Up @@ -2097,8 +2096,6 @@ object ElasticQuerySpec extends ZIOSpecDefault {
.validationMethod(IgnoreMalformed)
.name("name")

println(queryWithName.toJson(fieldPath = None))

val expected =
"""
|{
Expand Down

0 comments on commit e7b5351

Please sign in to comment.