Commit a7e60c93 authored by Donal Byrne's avatar Donal Byrne Committed by astaxie

Set ErrorsMap to nil in Validation.Clear function

parent 5b1705b2
......@@ -107,6 +107,7 @@ type Validation struct {
// Clean all ValidationError.
func (v *Validation) Clear() {
v.Errors = []*ValidationError{}
v.ErrorsMap = nil
}
// Has ValidationError nor not.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment