Skip to content

Commit

Permalink
remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrostami authored and sergeyklay committed Dec 11, 2016
1 parent 3b559a4 commit 0e25afb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions phalcon/validation.zep
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ class Validation extends Injectable implements ValidationInterface
throw new Exception("One of the validators is not valid");
}

if typeof validator != "object" {
throw new Exception("One of the validators is not valid");
}

/**
* Call internal validations, if it returns true, then skip the current validator
*/
Expand Down

0 comments on commit 0e25afb

Please sign in to comment.