ilyalelechenko / price_bot

if statement can be simplified PYL-R1703
Anti-pattern
Major
a year agoa year old
The if statement can be replaced with 'return bool(test)'
1def for_check(match):
2    try:
3        if 1 <= int(match) <= 100:4            return True
5        else:
6            return False