code cosmetics: pacify eslint

This commit is contained in:
tophf 2018-07-21 21:04:47 +03:00
parent c61d34d053
commit c6724b02d3
2 changed files with 3 additions and 1 deletions

View File

@ -379,6 +379,8 @@ function onTabReady(tabOrId) {
* @returns {Promise<Tab>} 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,

View File

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