QuackatronHQ / Gigarepo

if expression used can be simplified PYL-R1719
Anti-pattern
Minor
a month ago2 years old
The if expression can be replaced with 'bool(test)'
160if __name__ == "__main__":
161    args = ["--disable" "all"]
162    for i in range(len(args)):
163        has_truthy = True if args[i] else False164        if has_truthy:
165            break