We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b146e26 commit b95d64eCopy full SHA for b95d64e
lib/core/sessions.js
@@ -70,6 +70,8 @@ class ClientSession extends EventEmitter {
70
}
71
72
options = options || {};
73
+ clientOptions = clientOptions || {};
74
+
75
this.topology = topology;
76
this.sessionPool = sessionPool;
77
this.hasEnded = false;
@@ -81,12 +83,7 @@ class ClientSession extends EventEmitter {
81
83
typeof options.causalConsistency !== 'undefined' ? options.causalConsistency : true
82
84
};
85
- options = options || {};
- if (typeof options.initialClusterTime !== 'undefined') {
86
- this.clusterTime = options.initialClusterTime;
87
- } else {
88
- this.clusterTime = null;
89
- }
+ this.clusterTime = options.initialClusterTime;
90
91
this.operationTime = null;
92
this.explicit = !!options.explicit;
0 commit comments