Skip to content

Commit 5c8bd8e

Browse files
committed
fix: intentionally discarding returned values with void as we are only interested in its side effect. also silences the linter error assosciated with it
1 parent 8dc2e39 commit 5c8bd8e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/CreateDestroy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ describe('CreateDestroy', () => {
377377
(async () => {
378378
const x = new X();
379379
const destroy = x.destroy();
380-
x.a;
380+
void x.a;
381381
await destroy;
382382
})(),
383383
).resolves.toBeUndefined();

tests/CreateDestroyStartStop.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ describe('CreateDestroyStartStop', () => {
596596
await expect(
597597
(async () => {
598598
const start = x.start();
599-
x.a;
599+
void x.a;
600600
await start;
601601
})(),
602602
).rejects.toThrow(ErrorAsyncInitNotRunning);
@@ -614,7 +614,7 @@ describe('CreateDestroyStartStop', () => {
614614
await expect(
615615
(async () => {
616616
const stop = x.stop();
617-
x.a;
617+
void x.a;
618618
await stop;
619619
})(),
620620
).resolves.toBeUndefined();

tests/StartStop.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ describe('StartStop', () => {
311311
await expect(
312312
(async () => {
313313
const start = x.start();
314-
x.a;
314+
void x.a;
315315
await start;
316316
})(),
317317
).rejects.toThrow(ErrorAsyncInitNotRunning);
@@ -329,7 +329,7 @@ describe('StartStop', () => {
329329
await expect(
330330
(async () => {
331331
const stop = x.stop();
332-
x.a;
332+
void x.a;
333333
await stop;
334334
})(),
335335
).resolves.toBeUndefined();

0 commit comments

Comments
 (0)