Skip to content

Commit

Permalink
Move self.copy to new line
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonaNedeljkovic committed Jun 24, 2023
1 parent e7b5351 commit 62b3312
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ sealed trait GeoPolygonQuery[S] extends ElasticQuery[S] {
* field to identify the query
*
* @param value
* the [[String]] value to represent the name field
* the text value to represent the name field
* @return
* an instance of [[zio.elasticsearch.query.GeoPolygonQuery]] enriched with the `queryName` parameter.
*/
Expand Down Expand Up @@ -456,9 +456,11 @@ private[elasticsearch] final case class GeoPolygon[S](
validationMethod: Option[ValidationMethod]
) extends GeoPolygonQuery[S] { self =>

def name(value: String): GeoPolygonQuery[S] = self.copy(queryName = Some(value))
def name(value: String): GeoPolygonQuery[S] =
self.copy(queryName = Some(value))

def validationMethod(value: ValidationMethod): GeoPolygonQuery[S] = self.copy(validationMethod = Some(value))
def validationMethod(value: ValidationMethod): GeoPolygonQuery[S] =
self.copy(validationMethod = Some(value))

private[elasticsearch] def toJson(fieldPath: Option[String]): Json =
Obj(
Expand Down

0 comments on commit 62b3312

Please sign in to comment.