mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Add comment documenting confusing list_to_streams code.
This commit is contained in:
@@ -84,6 +84,9 @@ def list_to_streams(streams_raw, user_profile, autocreate=False, invite_only=Fal
|
|||||||
if created:
|
if created:
|
||||||
created_streams.append(stream)
|
created_streams.append(stream)
|
||||||
else:
|
else:
|
||||||
|
# We already checked for existing streams above; this
|
||||||
|
# next line is present to handle races where a stream
|
||||||
|
# was created while this function was executing.
|
||||||
existing_streams.append(stream)
|
existing_streams.append(stream)
|
||||||
|
|
||||||
return existing_streams, created_streams
|
return existing_streams, created_streams
|
||||||
|
|||||||
Reference in New Issue
Block a user