From 734b43333f6a1f80a7948e0814f9a1b9202b94fd Mon Sep 17 00:00:00 2001 From: "YUKI \"Piro\" Hiroshi" Date: Fri, 19 Apr 2019 01:03:39 +0900 Subject: [PATCH] Fix eslint errors --- src/js/background/backgroundLogic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/background/backgroundLogic.js b/src/js/background/backgroundLogic.js index dabcda7..5ef92ee 100644 --- a/src/js/background/backgroundLogic.js +++ b/src/js/background/backgroundLogic.js @@ -283,12 +283,12 @@ const backgroundLogic = { for (const difference of differ.diff(beforeIds, afterIds)) { if (!difference.added) continue; - let movingIds = difference.value; + const movingIds = difference.value; const nearestFollowingIndex = afterIds.indexOf(movingIds[movingIds.length - 1]) + 1; let newIndex = nearestFollowingIndex < afterIds.length ? sortedIds.indexOf(afterIds[nearestFollowingIndex]) : -1; if (newIndex < 0) newIndex = beforeIds.length; - let oldIndices = movingIds.map(id => sortedIds.indexOf(id)); + const oldIndices = movingIds.map(id => sortedIds.indexOf(id)); if (oldIndices[0] < newIndex) newIndex--; browser.tabs.move(movingIds, {