Skip to content

Commit 72c8199

Browse files
committed
fix(MongoBinary): remove using "binaryVersion" for version, because "version" cannot be undefined
1 parent 8365b30 commit 72c8199

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinary.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ export class MongoBinary {
103103
);
104104
const binaryVersion = spawnOutput[1];
105105

106-
if (isNullOrUndefined(options.version) || options.version.length <= 0) {
107-
log('getPath: Using SystemBinary version as options.version');
108-
options.version = binaryVersion;
109-
}
110-
111106
if (semver.neq(options.version, binaryVersion)) {
112107
// we will log the version number of the system binary and the version requested so the user can see the difference
113108
console.warn(

0 commit comments

Comments
 (0)