Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Dec 4, 2024
1 parent 2b84f42 commit a266df8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

// [email protected] 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;
}

Expand Down

0 comments on commit a266df8

Please sign in to comment.