You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruff should be able to detect if the code on both sides of an if statement are identical, and report it as unnecessary
if1: # error: both sides of the if statement are the sameprint(1)
else:
print(1)
asdf=1ifbool() else1# error: both sides of the if expression are the same
The text was updated successfully, but these errors were encountered:
ruff should be able to detect if the code on both sides of an if statement are identical, and report it as unnecessary
The text was updated successfully, but these errors were encountered: