add code Robustness

pull/787/head
qm012 3 years ago
parent 6ad1659689
commit c0d60f020b
  1. 2
      validator_instance.go

@ -163,6 +163,8 @@ func (v *Validate) SetErrTagName(name string) {
index := v.customTags.Position(defaultErrTagName)
if index != -1 {
v.customTags[index] = name
} else {
v.customTags = append(v.customTags, name)
}
defaultErrTagName = name
}

Loading…
Cancel
Save