mirror of https://github.com/zulip/zulip.git
minor: Remove confusing parens.
Apparently I put these parens in the code as
part of 73c30774cb
during 2017.
It looks like I extracted is_public during
the middle of my change and forgot to remove
the unnecessary parens. (The code was correct,
but it makes it look like a tuple if you're
skimming it too quickly.)
This commit is contained in:
parent
d60dd94168
commit
78384ebf1b
|
@ -5074,7 +5074,7 @@ def gather_subscriptions_helper(user_profile: UserProfile,
|
|||
if ns_stream_dict['id'] in never_subscribed_stream_ids]
|
||||
|
||||
for stream in never_subscribed_streams:
|
||||
is_public = (not stream['invite_only'])
|
||||
is_public = not stream['invite_only']
|
||||
if is_public or user_profile.is_realm_admin:
|
||||
stream_dict = build_stream_dict_for_never_sub(
|
||||
stream=stream,
|
||||
|
|
Loading…
Reference in New Issue