From a266df848b64c50422ea5226c8f3cb15c6db7379 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Wed, 4 Dec 2024 14:54:33 +0100 Subject: [PATCH] chore: fix lint --- .../node/opentelemetry-instrumentation-mysql2/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts b/plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts index f0617a8ffd..bd99a9db66 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts +++ b/plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts @@ -147,13 +147,13 @@ export const once = (fn: Function) => { }; }; -export function getConnectionPrototypeToInstrument(connection: any){ +export function getConnectionPrototypeToInstrument(connection: any) { const connectionPrototype = connection.prototype; const basePrototype = Object.getPrototypeOf(connectionPrototype); // mysql2@3.11.5 included a refactoring, where most code was moved out of the `Connection` class and into a shared base // so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081 - if(basePrototype?.constructor?.name === 'BaseConnection'){ + if (basePrototype?.constructor?.name === 'BaseConnection') { return basePrototype; }