Skip to content

Commit 6be0c00

Browse files
committed
style(MongoMemoryReplSet): trim error message & add "_" to unused parameter
1 parent 5fcf7f1 commit 6be0c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ export class MongoMemoryReplSet extends EventEmitter {
597597
const instanceInfo = server.instanceInfo;
598598

599599
if (!instanceInfo) {
600-
return rej(new Error('_waitForPrimary - instanceInfo not present '));
600+
return rej(new Error('_waitForPrimary - instanceInfo not present'));
601601
}
602602

603603
instanceInfo.instance.once(MongoInstanceEvents.instancePrimary, res);
@@ -608,7 +608,7 @@ export class MongoMemoryReplSet extends EventEmitter {
608608
}
609609
})
610610
),
611-
new Promise((res, rej) => {
611+
new Promise((_res, rej) => {
612612
timeoutId = setTimeout(() => {
613613
rej(new Error(`Timed out after ${timeout}ms while waiting for an Primary`));
614614
}, timeout);

0 commit comments

Comments
 (0)