Skip to content

Commit

Permalink
Refactor: Use const instead of let
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptru authored Aug 1, 2019
1 parent 052c391 commit 9c297b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tabs/src/tab-bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
return true;
} else {
tabSize = $el[`client${firstUpperCase(sizeName)}`];
let tabStyles = window.getComputedStyle($el);
const tabStyles = window.getComputedStyle($el);
if (sizeName === 'width' && this.tabs.length > 1) {
tabSize -= parseFloat(tabStyles.paddingLeft) + parseFloat(tabStyles.paddingRight);
}
if (sizeName === 'width') {
offset += parseFloat(tabStyles.paddingLeft);
}
Expand Down

0 comments on commit 9c297b1

Please sign in to comment.