From a8d955d3965ada73ec400130dcbbd67e76b49aef Mon Sep 17 00:00:00 2001 From: Ariel Mashraki Date: Thu, 1 Aug 2019 23:45:08 +0300 Subject: [PATCH] rql: fix lint error on slice declare --- rql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rql.go b/rql.go index b42c7bb..1dad689 100644 --- a/rql.go +++ b/rql.go @@ -275,7 +275,7 @@ func (p *Parser) parseField(sf reflect.StructField) error { p.Log("Ignoring unknown option %q in struct tag", opt) } } - filterOps := make([]Op, 0) + var filterOps []Op switch typ := indirect(sf.Type); typ.Kind() { case reflect.Bool: f.ValidateFn = validateBool