Files
zulip/static/js
Steve Howell b91a19df43 refactor: Extract warn_if_private_stream_is_linked.
This isn't really an extraction; it's more giving
a name to an anonymous function and moving it to
higher module scope.

We convert this to an ordinary function call, which
allows us to move it out of intialize().

Since there's just one simple parameter now (linked_stream),
we can avoid some error checking.

We also avoid the comment that describes the function,
since it now has a name.

And then one minor tweak is to do the inexpensive
`invite_only` higher in the function.  This will be
a nice speedup when you link to really large public
streams.

The unit tests are also a bit easier to read now--less
setup and more explicit names.
2020-01-14 13:13:48 -08:00
..
2020-01-05 12:27:26 -08:00
2020-01-05 12:27:28 -08:00
2020-01-05 12:27:28 -08:00
2020-01-05 12:27:28 -08:00
2019-12-30 09:50:22 -08:00
2019-10-25 13:51:21 -07:00
2020-01-03 17:19:50 -08:00
2020-01-14 12:39:17 -08:00
2020-01-05 12:27:28 -08:00
2020-01-03 17:19:50 -08:00
2019-10-25 13:51:21 -07:00
2020-01-05 12:28:23 -08:00
2020-01-05 12:27:28 -08:00
2020-01-03 17:19:50 -08:00
2020-01-03 17:19:50 -08:00
2019-10-25 13:51:21 -07:00
2020-01-03 17:19:50 -08:00