adekoder/flask-validator

Redundant if statement

Closed this issue · 3 comments

if isinstance(request_data, int):
if request_data is None:
return { 'status': False, 'message': error_msg}

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

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.

I am working on one.

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

Ok great.