adekoder / flask-validator

A Python Flask data validation library
23 stars 7 forks source link

Redundant if statement #8

Closed chumaumenze closed 5 years ago

chumaumenze commented 5 years ago

https://github.com/adekoder/flask-validator/blob/15f48a96f73d016cbd4a401e67c86bdf9a2fa276/flask_validator/validators.py#L6-L8

I was wondering why we have these nested ifs. @adekoder Is there any reason for this?

adekoder commented 5 years ago

Thanks for pointing this out @chumaumenze, i can't remember what i was think at the point of writing that code , You can send in a PR to Fix it. Thanks.

chumaumenze commented 5 years ago

I am working on one.

BTW, this is a nice work you have done here.

adekoder commented 5 years ago

Ok great.