Skip to content

Commit bcbc798

Browse files
roggervalfCopilot
authored andcommitted
chore: improve readability
Co-authored-by: Copilot <[email protected]>
1 parent 58e548e commit bcbc798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ will never work with more accuracy than 1ms. */
13321332

13331333
if (isNotConnectionError(<Error>err)) {
13341334
// Emit error when not paused or closing; optionally swallow (no throw) when opts.onlyEmitError is set.
1335-
if (!(this.paused || this.closing)) {
1335+
if (!this.paused && !this.closing) {
13361336
this.emit('error', <Error>err);
13371337
}
13381338

0 commit comments

Comments
 (0)