Skip to content

Commit a266df8

Browse files
committed
chore: fix lint
1 parent 2b84f42 commit a266df8

File tree

1 file changed

+2
-2
lines changed
  • plugins/node/opentelemetry-instrumentation-mysql2/src

1 file changed

+2
-2
lines changed

plugins/node/opentelemetry-instrumentation-mysql2/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ export const once = (fn: Function) => {
147147
};
148148
};
149149

150-
export function getConnectionPrototypeToInstrument(connection: any){
150+
export function getConnectionPrototypeToInstrument(connection: any) {
151151
const connectionPrototype = connection.prototype;
152152
const basePrototype = Object.getPrototypeOf(connectionPrototype);
153153

154154
// [email protected] included a refactoring, where most code was moved out of the `Connection` class and into a shared base
155155
// so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081
156-
if(basePrototype?.constructor?.name === 'BaseConnection'){
156+
if (basePrototype?.constructor?.name === 'BaseConnection') {
157157
return basePrototype;
158158
}
159159

0 commit comments

Comments
 (0)