mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
Remove unnecessary intermediate list
(imported from commit 037000d1c7c84d976866b9a8cef6eb3a69baecb9)
This commit is contained in:
@@ -789,7 +789,7 @@ def add_subscriptions_backend(request, user_profile):
|
|||||||
|
|
||||||
subscribed = []
|
subscribed = []
|
||||||
already_subscribed = []
|
already_subscribed = []
|
||||||
for stream_name in list(set(streams)):
|
for stream_name in set(streams):
|
||||||
stream = create_stream_if_needed(user_profile.realm, stream_name)
|
stream = create_stream_if_needed(user_profile.realm, stream_name)
|
||||||
did_subscribe = do_add_subscription(user_profile, stream)
|
did_subscribe = do_add_subscription(user_profile, stream)
|
||||||
if did_subscribe:
|
if did_subscribe:
|
||||||
|
|||||||
Reference in New Issue
Block a user