summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-04-14 20:45:37 +0900
commitb095efaee59572800244b34564692fd999cc4ded (patch)
tree89a2a1401b2af797bb687d0d79cfb5e9e52d987e /src/utils
parentFix tslint.json (diff)
downloadsharkey-b095efaee59572800244b34564692fd999cc4ded.tar.gz
sharkey-b095efaee59572800244b34564692fd999cc4ded.tar.bz2
sharkey-b095efaee59572800244b34564692fd999cc4ded.zip
Migrate to tslint 5.1.0
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/cli/progressbar.ts6
1 files changed, 3 insertions, 3 deletions
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}`;
}
}