Skip to content

Commit

Permalink
chore: lint autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Oct 13, 2023
1 parent 60f479b commit 80feddf
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class MongoDBInstrumentation extends InstrumentationBase {
v4PatchConnectionPool: (moduleExports: any, moduleVersion?: string) => {
diag.debug(`Applying patch for mongodb@${moduleVersion}`);
const poolPrototype = moduleExports.ConnectionPool.prototype;

if (isWrapped(poolPrototype.checkOut)) {
this._unwrap(poolPrototype, 'checkOut');
}
Expand All @@ -295,7 +295,10 @@ export class MongoDBInstrumentation extends InstrumentationBase {
);
return moduleExports;
},
v4UnpatchConnectionPool: (moduleExports?: any, moduleVersion?: string) => {
v4UnpatchConnectionPool: (
moduleExports?: any,
moduleVersion?: string
) => {
diag.debug(`Removing internal patch for mongodb@${moduleVersion}`);
if (moduleExports === undefined) return;

Expand Down Expand Up @@ -324,7 +327,7 @@ export class MongoDBInstrumentation extends InstrumentationBase {
};
}

// This patch will become unnecessary once
// This patch will become unnecessary once
// https://jira.mongodb.org/browse/NODE-5639 is done.
private _getV4ConnectionPoolCheckOut() {
return (original: V4ConnectionPool['checkOut']) => {
Expand Down

0 comments on commit 80feddf

Please sign in to comment.