From 72af5f37df5083370065d3c73df40011983e0229 Mon Sep 17 00:00:00 2001 From: nagamocha3000 Date: Tue, 23 Feb 2021 22:57:28 +0300 Subject: [PATCH] Remove redundant assignment to countCall.children since we already have the reference --- executor.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/executor.go b/executor.go index af0a1682f..c1b098d1f 100644 --- a/executor.go +++ b/executor.go @@ -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")