Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Dec 4, 2024
1 parent 88b4474 commit 705a6a4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ export function getConnectionPrototypeToInstrument(connection: any) {
// so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081
// This checks if the functions we're instrumenting are there on the base - we cannot use the presence of a base
// prototype since EventEmitter is the base for mysql2@<=3.11.4
if (typeof basePrototype?.query === 'function'
&& typeof basePrototype?.execute === 'function') {
if (
typeof basePrototype?.query === 'function' &&
typeof basePrototype?.execute === 'function'
) {
return basePrototype;
}

Expand Down

0 comments on commit 705a6a4

Please sign in to comment.