minor: Add get_user_set call that I missed earlier.

In my recent commit to introduce get_user_set() I
inadvertently skipped one place to call it.

I also remove a return statement that was made
unnecessary by the new get_user_set() helper.
This commit is contained in:
Steve Howell 2021-01-30 12:51:21 +00:00 committed by Tim Abbott
parent 016038dcd1
commit e44e48ef20
1 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,7 @@ export function potential_subscribers(stream_id) {
may be moot now for other reasons.)
*/
const subscribers = stream_subscribers.get(stream_id);
const subscribers = get_user_set(stream_id);
function is_potential_subscriber(person) {
// Use verbose style to force better test
@ -96,7 +96,6 @@ export function get_subscribers(stream_id) {
export function set_subscribers(stream_id, user_ids) {
const subscribers = new LazySet(user_ids || []);
stream_subscribers.set(stream_id, subscribers);
return subscribers;
}
export function add_subscriber(stream_id, user_id) {