Skip to content

Commit 4f730d9

Browse files
committed
chore: comments
1 parent 3edd7f9 commit 4f730d9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/connection_string.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,6 @@ export function parseOptions(
417417
});
418418
}
419419

420-
if (isAws && mongoOptions.credentials.username && !mongoOptions.credentials.password) {
421-
throw new MongoMissingCredentialsError(
422-
`When using ${mongoOptions.credentials.mechanism} password must be set when a username is specified`
423-
);
424-
}
425-
426420
if (isAws) {
427421
const { username, password } = mongoOptions.credentials;
428422
if (username || password) {

0 commit comments

Comments
 (0)