mirror of https://github.com/zulip/zulip.git
Add comment documenting confusing list_to_streams code.
This commit is contained in:
parent
fc8d4f9ef5
commit
80d92c1651
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue