Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Don't clear errors on getting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed May 17, 2016
1 parent db28144 commit 5996086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/BaseValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class ValidatorAssertions {

errors()
{
const errors = this._errors
this.clearErrors()
return errors
return this._errors
}

invalid(fields, error)
Expand Down

0 comments on commit 5996086

Please sign in to comment.