Skip to content

Commit

Permalink
Update form.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern authored Mar 4, 2019
1 parent c002b47 commit d2dcf1f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pyvalitron/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def add_sanitizer(self, san_instance):

def _validate(self):
"""Validate, Set Errors and Return Overall Status"""

# Validate current inputs value
status = True

for current_input, validation_rule in self._inputs.items():
# Push input value to validator
self._validator.set_input(self._inputs[current_input]['value'])
Expand Down Expand Up @@ -118,8 +115,6 @@ def _validate(self):

def _sanitize(self):
"""Sanitize Inputs and Store Them"""

# Sanitize current input value
status = True
for current_input, sanitization_rule in self._inputs.items():
# Push input value to sanitizer
Expand Down

0 comments on commit d2dcf1f

Please sign in to comment.