eslint: change keyword-spacing from warning to error and fix violations.

This commit is contained in:
Tommy Ip
2016-12-01 19:02:56 +00:00
committed by Tim Abbott
parent aab5ca620e
commit c90da24541
8 changed files with 21 additions and 13 deletions

View File

@@ -802,7 +802,7 @@ function validate_stream_message() {
var response;
if (!stream_data.is_subscribed(stream_name)) {
switch(check_stream_for_send(stream_name, page_params.narrow_stream !== undefined)) {
switch (check_stream_for_send(stream_name, page_params.narrow_stream !== undefined)) {
case "does-not-exist":
response = "<p>The stream <b>" +
Handlebars.Utils.escapeExpression(stream_name) + "</b> does not exist.</p>" +
@@ -1088,7 +1088,7 @@ $(function () {
$("#send-status").addClass("alert-error")
.removeClass("alert-info");
$("#compose-send-button").removeAttr("disabled");
switch(err) {
switch (err) {
case 'BrowserNotSupported':
msg = "File upload is not yet available for your browser.";
break;