Remove redundant assignment to countCall.children since we already have the reference

This commit is contained in:
nagamocha3000 2021-02-23 22:57:28 +03:00 committed by Matt Jaffee
parent 3fb79b4d97
commit 72af5f37df
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -1335,7 +1335,6 @@ func (e *executor) executePercentile(ctx context.Context, qcx *Qcx, index string
Op: pql.Token(pql.LT),
Value: possibleNthVal,
}
countCall.Children = []*pql.Call{rangeCall}
leftCountUint64, err := e.executeCount(ctx, qcx, index, countCall, shards, opt)
if err != nil {
return ValCount{}, errors.Wrap(err, "executing Count call L for Percentile")
@ -1347,7 +1346,6 @@ func (e *executor) executePercentile(ctx context.Context, qcx *Qcx, index string
Op: pql.Token(pql.GT),
Value: possibleNthVal,
}
countCall.Children = []*pql.Call{rangeCall}
rightCountUint64, err := e.executeCount(ctx, qcx, index, countCall, shards, opt)
if err != nil {
return ValCount{}, errors.Wrap(err, "executing Count call R for Percentile")