Skip to content

Commit b2cea62

Browse files
committed
chore: fix lint issues
1 parent 8666907 commit b2cea62

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

plugins/node/opentelemetry-instrumentation-mysql/test/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ import { AttributeNames } from '../src/AttributeNames';
5252
// Helper function to setup the database
5353
const execPromise = (conn: mysqlTypes.Connection, command: string) => {
5454
return new Promise<void>((res, rej) => {
55-
conn.query(command, (err) => {
55+
conn.query(command, err => {
5656
if (err) rej(err);
5757
else res();
58-
})
59-
})
58+
});
59+
});
6060
};
6161

6262
describe('[email protected]', () => {

plugins/node/opentelemetry-instrumentation-mysql2/test/mysql.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ interface Result extends RowDataPacket {
6767
// Helper function to setup the database
6868
const execPromise = (conn: Connection, command: string) => {
6969
return new Promise<void>((res, rej) => {
70-
conn.execute(command, (err) => {
70+
conn.execute(command, err => {
7171
if (err) rej(err);
7272
else res();
73-
})
74-
})
73+
});
74+
});
7575
};
7676

7777
describe('mysql2', () => {
@@ -88,8 +88,8 @@ describe('mysql2', () => {
8888
database,
8989
});
9090
try {
91-
await execPromise(connection, `SET GLOBAL log_output='TABLE'`);
92-
await execPromise(connection, `SET GLOBAL general_log = 1`);
91+
await execPromise(connection, "SET GLOBAL log_output='TABLE'");
92+
await execPromise(connection, 'SET GLOBAL general_log = 1');
9393
} catch (execErr) {
9494
console.error('MySQL seup error: ', execErr);
9595
this.skip();
@@ -369,8 +369,8 @@ describe('mysql2', () => {
369369
const span = provider.getTracer('default').startSpan('test span');
370370
context.with(trace.setSpan(context.active(), span), () => {
371371
connection.query('SELECT 1+1 as solution', (e, r) => {
372-
console.log(e)
373-
console.log(r)
372+
console.log(e);
373+
console.log(r);
374374
const spans = memoryExporter.getFinishedSpans();
375375
assert.strictEqual(spans.length, 1);
376376
getLastQueries(1).then(([query]) => {

0 commit comments

Comments
 (0)