Skip to content

Commit 705a6a4

Browse files
committed
fix: lint
1 parent 88b4474 commit 705a6a4

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ export function getConnectionPrototypeToInstrument(connection: any) {
155155
// so we need to instrument that instead, see https://github.com/sidorares/node-mysql2/pull/3081
156156
// This checks if the functions we're instrumenting are there on the base - we cannot use the presence of a base
157157
// prototype since EventEmitter is the base for mysql2@<=3.11.4
158-
if (typeof basePrototype?.query === 'function'
159-
&& typeof basePrototype?.execute === 'function') {
158+
if (
159+
typeof basePrototype?.query === 'function' &&
160+
typeof basePrototype?.execute === 'function'
161+
) {
160162
return basePrototype;
161163
}
162164

0 commit comments

Comments
 (0)