remove redundant error message

This commit is contained in:
Maxton Huff 2021-03-30 08:13:36 -05:00
parent 13ec97abf5
commit 8c20d9a51c

View file

@ -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()