actions: Remove unnecessary do_create_stream function.

This commit is contained in:
Tim Abbott
2017-01-29 21:28:33 -08:00
parent 700089f386
commit 4d3e97f304
3 changed files with 3 additions and 17 deletions

View File

@@ -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))