lint compliance

pull/1/head
ansuz 4 years ago
parent 57080dd5ca
commit 416ba823bd

@ -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();
});

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

Loading…
Cancel
Save