Skip to content

Commit

Permalink
Fix code remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
dbulaja98 committed May 2, 2023
1 parent c087481 commit 83164fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ sealed trait SingleElasticAggregation extends ElasticAggregation

sealed trait MaxAggregation extends SingleElasticAggregation with HasMissing[MaxAggregation] with WithAgg

final case class Max(name: String, field: String, missing: Option[Double]) extends MaxAggregation { self =>
private[elasticsearch] final case class Max(name: String, field: String, missing: Option[Double])
extends MaxAggregation { self =>
def missing(value: Double): MaxAggregation =
self.copy(missing = Some(value))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package zio.elasticsearch.aggregation.options
private[elasticsearch] trait HasMissing[A <: HasMissing[A]] {

/**
* Sets the `missing` parameter for the [[zio.elasticsearch.aggregation.ElasticAggregation]]. The`Missing` parameter
* Sets the `missing` parameter for the [[zio.elasticsearch.aggregation.ElasticAggregation]]. The`missing` parameter
* provides a value to use when a document is missing the field that the aggregation is running on.
*
* @param value
Expand Down

0 comments on commit 83164fb

Please sign in to comment.