Skip to content

Commit 5fcf7f1

Browse files
committed
test(replset-single-restart): remove unused non-null assertion
1 parent 7989082 commit 5fcf7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/__tests__/replset-single-restart.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('single-member replica set', () => {
3232

3333
// Write real port to config (because 27017 may be busy, we need to get real port)
3434
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
35-
opts.instanceOpts![0].port = replSetBefore.servers[0].instanceInfo!.port;
35+
opts.instanceOpts[0].port = replSetBefore.servers[0].instanceInfo!.port;
3636

3737
await replSetBefore.stop();
3838

0 commit comments

Comments
 (0)