mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
python: Elide unnecessary list wrappers.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
eff0a73925
commit
2665a3ce2b
@@ -892,7 +892,7 @@ def get_zulip_event_name(
|
||||
return "issue_milestoned_or_demilestoned"
|
||||
else:
|
||||
return "issues"
|
||||
elif header_event in list(EVENT_FUNCTION_MAPPER.keys()):
|
||||
elif header_event in EVENT_FUNCTION_MAPPER:
|
||||
return header_event
|
||||
elif header_event in IGNORED_EVENTS:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user