From c6724b02d3b79c75c87d60a6c9fa71a77059dfe6 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 21 Jul 2018 21:04:47 +0300 Subject: [PATCH] code cosmetics: pacify eslint --- js/messaging.js | 2 ++ manage/manage.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/messaging.js b/js/messaging.js index 1bc6ba9f..dcbc1dd7 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -379,6 +379,8 @@ function onTabReady(tabOrId) { * @returns {Promise} Promise that resolves to the opened/activated tab */ function openURL({ + // https://github.com/eslint/eslint/issues/10639 + // eslint-disable-next-line no-undef url = arguments[0], index, active, diff --git a/manage/manage.js b/manage/manage.js index c74e9e2d..eb190ddc 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -541,7 +541,7 @@ Object.assign(handleEvent, { }); -function handleUpdate(style, {reason, method, codeIsUpdated} = {}) { +function handleUpdate(style, {reason, method} = {}) { if (reason === 'editPreview') return; // the style was toggled and refreshAllTabs() sent a mini-notification, // but we've already processed 'styleUpdated' sent directly from notifyAllTabs()