Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 16, 2020
1 parent a262140 commit eab6cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Connection.prototype.startSession = _wrapConnHelper(function startSession(option
* in a transaction. Mongoose will commit the transaction if the
* async function executes successfully and attempt to retry if
* there was a retriable error.
*
*
* Calls the MongoDB driver's [`session.withTransaction()`](http://mongodb.github.io/node-mongodb-native/3.5/api/ClientSession.html#withTransaction),
* but also handles resetting Mongoose document state as shown below.
*
Expand All @@ -435,7 +435,7 @@ Connection.prototype.startSession = _wrapConnHelper(function startSession(option
* doc.rank = 'Captain';
* await doc.save({ session });
* doc.isNew; // false
*
*
* // Throw an error to abort the transaction
* throw new Error('Oops!');
* }).catch(() => {});
Expand Down

0 comments on commit eab6cc0

Please sign in to comment.