From 80feddf8a8b076e65eb4589e1d6bab96ff089d92 Mon Sep 17 00:00:00 2001 From: David Luna Date: Fri, 13 Oct 2023 18:16:29 +0200 Subject: [PATCH] chore: lint autofix --- .../src/instrumentation.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts index aaaf3336c4..3fb4d2c75a 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts @@ -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'); } @@ -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; @@ -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']) => {