consider-using-min-builtin / R1730#
Consider using '%s' instead of unnecessary if block
Using the min builtin instead of a conditional improves readability and conciseness.
def get_min(value1, value2): if value1 > value2: # [consider-using-min-builtin] value1 = value2 return value1 print(get_min(1, 2))
Created by the refactoring checker.