Skip to content

Commit f7094b2

Browse files
committed
fix: warning message fix should not check for topology existence
1 parent 716a7f3 commit f7094b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operations/connect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function connect(
260260
'seed list contains no mongos proxies, replicaset connections requires ' +
261261
'the parameter replicaSet to be supplied in the URI or options object, ' +
262262
'mongodb://server:port/db?replicaSet=name';
263-
if ((err && err.message === 'no mongos proxies found in seed list') || !topology) {
263+
if (err && err.message === 'no mongos proxies found in seed list') {
264264
if (logger.isWarn()) {
265265
logger.warn(warningMessage);
266266
}

0 commit comments

Comments
 (0)