We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b21f1 commit 78fc9f3Copy full SHA for 78fc9f3
src/cursor/abstract_cursor.ts
@@ -905,7 +905,7 @@ export abstract class AbstractCursor<
905
);
906
}
907
908
- if (!this.cursorSession) {
+ if (this.cursorSession == null) {
909
throw new MongoRuntimeError(
910
'Unexpected null session. A cursor creating command should have set this'
911
@@ -1081,7 +1081,7 @@ export abstract class AbstractCursor<
1081
if (session.owner === this) {
1082
await session.endSession({ error });
1083
1084
- if (!session?.inTransaction()) {
+ if (!session.inTransaction()) {
1085
maybeClearPinnedConnection(session, { error });
1086
1087
0 commit comments