Remove unnecessary intermediate list

(imported from commit 037000d1c7c84d976866b9a8cef6eb3a69baecb9)
This commit is contained in:
Keegan McAllister
2012-11-01 17:07:14 -04:00
parent b0d395b0c1
commit c5035dade0

View File

@@ -789,7 +789,7 @@ def add_subscriptions_backend(request, user_profile):
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)
did_subscribe = do_add_subscription(user_profile, stream)
if did_subscribe: