Skip to content

Commit cf332c8

Browse files
committed
test(MongoInstance): convert one line to optional-chaining
1 parent c6010f4 commit cf332c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('MongodbInstance', () => {
125125
binary: { version: LATEST_VERSION },
126126
});
127127
const pid: any = mongod.getPid();
128-
const killerPid: any = mongod.killerProcess && mongod.killerProcess.pid;
128+
const killerPid: any = mongod.killerProcess?.pid;
129129
expect(pid).toBeGreaterThan(0);
130130
expect(killerPid).toBeGreaterThan(0);
131131

0 commit comments

Comments
 (0)