mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
actions: Remove unnecessary do_create_stream function.
This commit is contained in:
@@ -5,7 +5,7 @@ from typing import Any
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from zerver.lib.actions import do_create_stream
|
||||
from zerver.lib.actions import create_stream_if_needed
|
||||
from zerver.lib.str_utils import force_text
|
||||
from zerver.models import Realm, get_realm
|
||||
|
||||
@@ -35,5 +35,5 @@ the command."""
|
||||
if realm is None:
|
||||
print("Unknown string_id %s" % (string_id,))
|
||||
exit(1)
|
||||
else:
|
||||
do_create_stream(realm, force_text(stream_name, encoding))
|
||||
|
||||
create_stream_if_needed(realm, force_text(stream_name, encoding))
|
||||
|
||||
Reference in New Issue
Block a user