From b095efaee59572800244b34564692fd999cc4ded Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Fri, 14 Apr 2017 20:45:37 +0900 Subject: Migrate to tslint 5.1.0 --- src/utils/cli/progressbar.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils/cli') diff --git a/src/utils/cli/progressbar.ts b/src/utils/cli/progressbar.ts index f9b690a904..1a0023e8db 100644 --- a/src/utils/cli/progressbar.ts +++ b/src/utils/cli/progressbar.ts @@ -52,7 +52,7 @@ export default class extends ev.EventEmitter { private render(): string { const width = 30; - const t = this.text ? this.text + ' ' : ''; + const t = this.text ? `${this.text} ` : ''; const v = Math.floor((this.value / this.max) * width); const vs = new Array(v + 1).join('*'); @@ -61,7 +61,7 @@ export default class extends ev.EventEmitter { const ps = new Array(p + 1).join(' '); const percentage = Math.floor((this.value / this.max) * 100); - const percentages = chalk.gray(`(${percentage}%)`); + const percentages = chalk.gray(`(${percentage} %)`); let i: string; switch (this.indicator) { @@ -72,7 +72,7 @@ export default class extends ev.EventEmitter { case null: i = '+'; break; } - return `${i} ${t}[${vs}${ps}] ${this.value}/${this.max} ${percentages}`; + return `${i} ${t}[${vs}${ps}] ${this.value} / ${this.max} ${percentages}`; } } -- cgit v1.2.3-freya