mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +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:
|
||||
created_streams.append(stream)
|
||||
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)
|
||||
|
||||
return existing_streams, created_streams
|
||||
|
||||
Reference in New Issue
Block a user