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;

Check warning on line 285 in plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts

View check run for this annotation

Codecov / codecov/patch

plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts#L283-L285

Added lines #L283 - L285 were not covered by tests

if (isWrapped(poolPrototype.checkOut)) {
this._unwrap(poolPrototype, 'checkOut');

Check warning on line 288 in plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts

View check run for this annotation

Codecov / codecov/patch

plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts#L287-L288

Added lines #L287 - L288 were not covered by tests
}
Expand All @@ -295,7 +295,10 @@ export class MongoDBInstrumentation extends InstrumentationBase {
);
return moduleExports;

Check warning on line 296 in plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts

View check run for this annotation

Codecov / codecov/patch

plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts#L296

Added line #L296 was not covered by tests
},
v4UnpatchConnectionPool: (moduleExports?: any, moduleVersion?: string) => {
v4UnpatchConnectionPool: (
moduleExports?: any,
moduleVersion?: string
) => {
diag.debug(`Removing internal patch for mongodb@${moduleVersion}`);
if (moduleExports === undefined) return;

Check warning on line 303 in plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts

View check run for this annotation

Codecov / codecov/patch

plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts#L301-L303

Added lines #L301 - L303 were not covered by tests

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.