From 8c20d9a51c333ddbf0f08ddcba06a33a50b41dc9 Mon Sep 17 00:00:00 2001 From: Maxton Huff Date: Tue, 30 Mar 2021 08:13:36 -0500 Subject: [PATCH] remove redundant error message --- executor.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/executor.go b/executor.go index 8a0215c0b..0a139369b 100644 --- a/executor.go +++ b/executor.go @@ -1308,9 +1308,6 @@ func (e *executor) executePercentile(ctx context.Context, qcx *Qcx, index string if !ok { return ValCount{}, errors.New("Percentile(): nth required") } - if nthArg == nil { - return ValCount{}, errors.New("Percentile(): nth required") - } switch nthArg := nthArg.(type) { case pql.Decimal: nthFloat = nthArg.Float64()