Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit d765f75

Browse files
committed
refactor(wire-protocol): decorateWithSessionsData called twice
This method is already called in all other paths in `command`.
1 parent f93309a commit d765f75

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/wireprotocol/3_2_support.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,6 @@ WireProtocol.prototype.command = function(bson, ns, cmd, cursorState, topology,
372372
return query;
373373
}
374374

375-
// optionally decorate query with transaction data
376-
const err = decorateWithSessionsData(query.query, options.session, options);
377-
if (err) {
378-
return err;
379-
}
380-
381375
return query;
382376
};
383377

0 commit comments

Comments
 (0)