From 416ba823bdac1ad4fc71c3044f7afe9fb84f9c6e Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 1 Apr 2021 16:44:57 +0530 Subject: [PATCH] lint compliance --- www/admin/inner.js | 10 +++++----- www/common/outer/mailbox-handlers.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/www/admin/inner.js b/www/admin/inner.js index a7517e8d3..204e39dfc 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -1060,7 +1060,7 @@ define([ var form = h('div.cp-admin-broadcast-form'); var $form = $(form).appendTo($div); - var refresh = getApi(function (Broadcast) { + var refresh = getApi(function (/* Broadcast */) { // XXX unused argument var button = h('button.btn.btn-primary', Messages.admin_broadcastButton); var $button = $(button); var removeButton = h('button.btn.btn-danger', Messages.admin_broadcastCancel); @@ -1230,7 +1230,7 @@ define([ var send = function (data) { $button.prop('disabled', 'disabled'); data.time = +new Date(); - common.mailbox.sendTo('BROADCAST_CUSTOM', data, {}, function (err, data) { + common.mailbox.sendTo('BROADCAST_CUSTOM', data, {}, function (err /*, data */) { // XXX unused argument if (err) { $button.prop('disabled', ''); console.error(err); @@ -1255,7 +1255,7 @@ define([ if (!activeUid) { return; } common.mailbox.sendTo('BROADCAST_DELETE', { uid: activeUid - }, {}, function (err, data) { + }, {}, function (err /* , data */) { // XXX unused argument if (err) { return UI.warn(Messages.error); } UI.log(Messages.saved); refresh(); @@ -1349,7 +1349,7 @@ define([ return; } // Maintenance applied, send notification - common.mailbox.sendTo('BROADCAST_MAINTENANCE', {}, {}, function (err, data) { + common.mailbox.sendTo('BROADCAST_MAINTENANCE', {}, {}, function (/* err, data */) { // XXX unused arguments refresh(); checkLastBroadcastHash(); }); @@ -1445,7 +1445,7 @@ define([ // Maintenance applied, send notification common.mailbox.sendTo('BROADCAST_SURVEY', { url: data - }, {}, function (err, data) { + }, {}, function (/* err, data */) { // XXX unused arguments refresh(); checkLastBroadcastHash(); }); diff --git a/www/common/outer/mailbox-handlers.js b/www/common/outer/mailbox-handlers.js index f9cfd994d..7db5a3119 100644 --- a/www/common/outer/mailbox-handlers.js +++ b/www/common/outer/mailbox-handlers.js @@ -687,7 +687,7 @@ define([ // Broadcast - var broadcasts = {}; + //var broadcasts = {}; // XXX defined but never used ? handlers['BROADCAST_MAINTENANCE'] = function (ctx, box, data, cb) { var msg = data.msg; var uid = msg.uid; @@ -708,7 +708,7 @@ define([ var dismiss = !content.url; cb(dismiss, old); }; - var activeCustom + var activeCustom; handlers['BROADCAST_CUSTOM'] = function (ctx, box, data, cb) { var msg = data.msg; var uid = msg.uid;