Skip to content

Commit c002ca6

Browse files
author
Benjamin Pasero
committed
fix bad usage of setTimeout()
1 parent 42f6ffc commit c002ca6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/browser/ui/progressbar/progressbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class ProgressBar extends Disposable {
101101
this.bit.style.width = 'inherit';
102102

103103
if (delayed) {
104-
setTimeout(200, () => this.off());
104+
setTimeout(() => this.off(), 200);
105105
} else {
106106
this.off();
107107
}
@@ -111,7 +111,7 @@ export class ProgressBar extends Disposable {
111111
else {
112112
this.bit.style.opacity = '0';
113113
if (delayed) {
114-
setTimeout(200, () => this.off());
114+
setTimeout(() => this.off(), 200);
115115
} else {
116116
this.off();
117117
}

0 commit comments

Comments
 (0)