chore: eslint no-var, vars-on-top

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:06:15 -07:00
committed by Julian Lam
parent b56d9e12b5
commit dab3b23575
255 changed files with 1988 additions and 1995 deletions

View File

@@ -183,9 +183,9 @@ Upgrade.incrementProgress = function (value) {
if (this.counter > step || this.current >= this.total) {
this.counter -= step;
var percentage = 0;
var filled = 0;
var unfilled = 15;
let percentage = 0;
let filled = 0;
let unfilled = 15;
if (this.total) {
percentage = `${Math.floor((this.current / this.total) * 100)}%`;
filled = Math.floor((this.current / this.total) * 15);