diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 16:40:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 16:40:10 -0400 |
commit | 9dfebbc9496138efbeedc431068f41662c780f3e (patch) | |
tree | c3718c3dc132d11c08c8fc18933daebf886bf787 /js/workers.ts | |
parent | 6cded14bdf313762956d4d5361cfe8115628b535 (diff) |
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'js/workers.ts')
-rw-r--r-- | js/workers.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/workers.ts b/js/workers.ts index 456449d48..1531b960b 100644 --- a/js/workers.ts +++ b/js/workers.ts @@ -161,9 +161,11 @@ export class WorkerImpl implements Worker { this.rid = createWorker(specifier); this.run(); this.isClosedPromise = hostGetWorkerClosed(this.rid); - this.isClosedPromise.then(() => { - this.isClosing = true; - }); + this.isClosedPromise.then( + (): void => { + this.isClosing = true; + } + ); } get closed(): Promise<void> { |