Skip to content

Commit

Permalink
style(client/App): remove unnecessary variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Dec 4, 2018
1 parent 0f9e9d6 commit 856a33f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions client/src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ export class App extends Component {
return tabShown.promise;
}

const navigationHistory = this.navigationHistory;

navigationHistory.push(tab);
this.navigationHistory.push(tab);

return this.setActiveTab(tab);
}
Expand All @@ -170,9 +168,7 @@ export class App extends Component {
return getNextTab(tabs, activeTab, direction);
};

const navigationHistory = this.navigationHistory;

const nextActiveTab = navigationHistory.navigate(direction, nextFn);
const nextActiveTab = this.navigationHistory.navigate(direction, nextFn);

return this.setActiveTab(nextActiveTab);
}
Expand Down Expand Up @@ -265,8 +261,7 @@ export class App extends Component {
});

// replace in navigation history
const navigationHistory = this.navigationHistory;
navigationHistory.replace(tab, updatedTab);
this.navigationHistory.replace(tab, updatedTab);

return updatedTab;
}
Expand Down

0 comments on commit 856a33f

Please sign in to comment.