Fix unused ctx in StructFilteredCtx

pull/380/head
Damir Vandic 6 years ago committed by GitHub
parent d942191d51
commit bdae516532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      validator_instance.go

@ -318,7 +318,7 @@ func (v *Validate) StructFilteredCtx(ctx context.Context, s interface{}, fn Filt
vd.ffn = fn vd.ffn = fn
// vd.hasExcludes = false // only need to reset in StructPartial and StructExcept // vd.hasExcludes = false // only need to reset in StructPartial and StructExcept
vd.validateStruct(context.Background(), top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil) vd.validateStruct(ctx, top, val, val.Type(), vd.ns[0:0], vd.actualNs[0:0], nil)
if len(vd.errs) > 0 { if len(vd.errs) > 0 {
err = vd.errs err = vd.errs

Loading…
Cancel
Save