mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
streams: Add isinstance check for merge_streams.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
6f42b1c75c
commit
f314171a7b
@@ -162,6 +162,8 @@ def merge_streams(
|
||||
) -> Tuple[int, int, int]:
|
||||
recipient_to_destroy = stream_to_destroy.recipient
|
||||
recipient_to_keep = stream_to_keep.recipient
|
||||
assert recipient_to_keep is not None
|
||||
assert recipient_to_destroy is not None
|
||||
if recipient_to_destroy.id == recipient_to_keep.id:
|
||||
return (0, 0, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user