mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
chore: eslint no-var, vars-on-top
This commit is contained in:
committed by
Julian Lam
parent
b56d9e12b5
commit
dab3b23575
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user