-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
One pet peeve I have is that people often write code like this:
def isValid():
myBool = False
if myBool == True: # note this can also be simplified to simply myBool instead of myBool == True, but I'm often not sure what the best way to go about this is since the former tests for false-y values instead of boolean values
return True
else:
return FalseWhen this can be simplified to:
def isValid():
myBool = False
return myBoolReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels