Skip to content

Commit

Permalink
fix: warning message fix should not check for topology existence
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 22, 2020
1 parent 716a7f3 commit f7094b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export function connect(
'seed list contains no mongos proxies, replicaset connections requires ' +
'the parameter replicaSet to be supplied in the URI or options object, ' +
'mongodb://server:port/db?replicaSet=name';
if ((err && err.message === 'no mongos proxies found in seed list') || !topology) {
if (err && err.message === 'no mongos proxies found in seed list') {
if (logger.isWarn()) {
logger.warn(warningMessage);
}
Expand Down

0 comments on commit f7094b2

Please sign in to comment.