mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
check-schemas: Remove unnecessary special case for saved_snippets.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c5feccaa34
commit
7ce49a709e
@@ -61,11 +61,6 @@ def get_event_checker(event: dict[str, Any]) -> Callable[[str, dict[str, Any]],
|
||||
# Start by grabbing the event type.
|
||||
name = event["type"]
|
||||
|
||||
# Work around the fact that we send a "saved_snippets" (plural)
|
||||
# event type for an event that really just sends a single value.
|
||||
if name == "saved_snippets":
|
||||
name = "saved_snippet"
|
||||
|
||||
# Handle things like AttachmentRemoveEvent
|
||||
if "op" in event:
|
||||
name += "_" + event["op"].title()
|
||||
|
||||
Reference in New Issue
Block a user