Skip to content

Commit 8588e57

Browse files
committed
style: correct linting issues introduced with prettier update
1 parent 0e48300 commit 8588e57

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/operations/execute_operation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ function executeWithServerSelection(topology, operation, callback) {
155155

156156
const shouldRetryReads =
157157
topology.s.options.retryReads !== false &&
158-
operation.session && !inTransaction &&
158+
operation.session &&
159+
!inTransaction &&
159160
supportsRetryableReads(server) &&
160161
operation.canRetryRead;
161162

lib/operations/map_reduce.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class MapReduceOperation extends OperationBase {
8787
options.readPreference !== false &&
8888
options.readPreference !== 'primary' &&
8989
options['out'] &&
90-
options['out'].inline !== 1 && options['out'] !== 'inline'
90+
options['out'].inline !== 1 &&
91+
options['out'] !== 'inline'
9192
) {
9293
// Force readPreference to primary
9394
options.readPreference = 'primary';

0 commit comments

Comments
 (0)