Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_create: Don't return anything from create_stream.

evykassirerb27ce42f6d75
diff --git a/web/src/stream_create.js b/web/src/stream_create.js
index 5db677f4fec..966ba6706e5 100644
--- a/web/src/stream_create.js
+++ b/web/src/stream_create.js
@@ -237,7 +237,7 @@ function create_stream() {
$t_html({defaultMessage: "The channel description cannot contain newline characters."}),
$(".stream_create_info"),
);
- return undefined;
+ return;
}
data.subscriptions = JSON.stringify([{name: stream_name, description}]);
@@ -331,7 +331,7 @@ function create_stream() {
});
// Subscribe yourself and possible other people to a new stream.
- return channel.post({
+ channel.post({
url: "/json/users/me/subscriptions",
data,
success() {