Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: dont default multiple times
  • Loading branch information
durran committed Jul 1, 2024
commit 9e77586e6a5b253a66dc5bfe664f540511cd9f7e
5 changes: 2 additions & 3 deletions src/client-side-encryption/mongocryptd_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export class MongocryptdManager {

this.bypassSpawn = !!extraOptions.mongocryptdBypassSpawn;

if (Object.hasOwn(extraOptions, 'mongocryptdSpawnPath')) {
this.spawnPath = extraOptions.mongocryptdSpawnPath || '';
if (Object.hasOwn(extraOptions, 'mongocryptdSpawnPath') && extraOptions.mongocryptdSpawnPath) {
this.spawnPath = extraOptions.mongocryptdSpawnPath;
}
this.spawnArgs = [];
if (
Object.hasOwn(extraOptions, 'mongocryptdSpawnArgs') &&
Array.isArray(extraOptions.mongocryptdSpawnArgs)
Expand Down