File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
zulip_bots/zulip_bots/bots Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -570,10 +570,9 @@ def can_take_mode(topic_name, merels_storage):
570
570
571
571
updated_hill_uid = get_hills_numbers (updated_grid )
572
572
573
- if current_hill_uid != updated_hill_uid and len (updated_hill_uid ) >= len (current_hill_uid ):
574
- return True
575
- else :
576
- return False
573
+ return bool (
574
+ current_hill_uid != updated_hill_uid and len (updated_hill_uid ) >= len (current_hill_uid )
575
+ )
577
576
578
577
579
578
def check_moves (turn , grid ):
Original file line number Diff line number Diff line change @@ -124,10 +124,7 @@ def send_message(
124
124
def is_help (self , original_content : str ) -> bool :
125
125
# gets rid of whitespace around the edges, so that they aren't a problem in the future
126
126
message_content = original_content .strip ()
127
- if message_content == "help" :
128
- return True
129
- else :
130
- return False
127
+ return message_content == "help"
131
128
132
129
133
130
handler_class = YodaSpeakHandler
You can’t perform that action at this time.
0 commit comments