Skip to content

Commit

Permalink
rql: fix lint error on slice declare
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Aug 1, 2019
1 parent 405945f commit a8d955d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8d955d

Please sign in to comment.