summaryrefslogtreecommitdiffstats
path: root/devtools/client/shared/components/tabs/TabBar.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/shared/components/tabs/TabBar.js')
-rw-r--r--devtools/client/shared/components/tabs/TabBar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/client/shared/components/tabs/TabBar.js b/devtools/client/shared/components/tabs/TabBar.js
index 730e8c7802..cbd1e927ae 100644
--- a/devtools/client/shared/components/tabs/TabBar.js
+++ b/devtools/client/shared/components/tabs/TabBar.js
@@ -73,7 +73,7 @@ class Tabbar extends Component {
super(props, context);
const { activeTabId, children = [] } = props;
const tabs = this.createTabs(children);
- const activeTab = tabs.findIndex((tab, index) => tab.id === activeTabId);
+ const activeTab = tabs.findIndex(tab => tab.id === activeTabId);
this.state = {
activeTab: activeTab === -1 ? 0 : activeTab,
@@ -103,7 +103,7 @@ class Tabbar extends Component {
UNSAFE_componentWillReceiveProps(nextProps) {
const { activeTabId, children = [] } = nextProps;
const tabs = this.createTabs(children);
- const activeTab = tabs.findIndex((tab, index) => tab.id === activeTabId);
+ const activeTab = tabs.findIndex(tab => tab.id === activeTabId);
if (
activeTab !== this.state.activeTab ||