Skip to content

Commit

Permalink
ci: fix noUnusedParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jun 26, 2023
1 parent fcf1e3f commit c134683
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/tsc-build/mysql/createPool/callbacks/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { access } from '../../baseConnection.js';

const pool = mysql.createPool(access);

pool.getConnection((err, conn) => {
pool.getConnection((_err, conn) => {
conn.connection;

try {
Expand Down
2 changes: 1 addition & 1 deletion test/tsc-build/mysql/createPool/callbacks/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { access, sql, sqlPS, values } from '../../baseConnection.js';

/** getConnection and query */
{
mysql.createPool(access).getConnection((err, connection) => {
mysql.createPool(access).getConnection((_err, connection) => {
/** Overload: execute(sql, () => {}}) */
connection.execute(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down
2 changes: 1 addition & 1 deletion test/tsc-build/mysql/createPool/callbacks/getConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { access } from '../../baseConnection.js';

const pool = mysql.createPool(access);

pool.getConnection((err, conn) => {
pool.getConnection((_err, conn) => {
try {
// @ts-expect-error: The connection can't get another connection
conn.getConnection();
Expand Down
2 changes: 1 addition & 1 deletion test/tsc-build/mysql/createPool/callbacks/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { access, sql, sqlPS, values } from '../../baseConnection.js';

/** getConnection */
{
mysql.createPool(access).getConnection((err, connection) => {
mysql.createPool(access).getConnection((_err, connection) => {
/** Overload: query(sql, () => {}}) */
connection.query(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down
2 changes: 1 addition & 1 deletion test/tsc-build/mysql/createPool/callbacks/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { access } from '../../baseConnection.js';

const pool = mysql.createPool(access);

pool.getConnection((err, conn) => {
pool.getConnection((_err, conn) => {
conn.release();

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { access } from '../../baseConnection.js';

const pool = mysql.createPool(access);

pool.getConnection((err, conn) => {
pool.getConnection((_err, conn) => {
pool.releaseConnection(conn);
});
4 changes: 2 additions & 2 deletions test/tsc-build/mysql/createPoolCluster/getConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ poolCluster.add('cluster1', uriAccess);
poolCluster.add('cluster2', access);

/** execute */
poolCluster.getConnection((err, conn) => {
poolCluster.getConnection((_err, conn) => {
/** Overload: execute(sql, () => {}}) */
conn.execute(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down Expand Up @@ -38,7 +38,7 @@ poolCluster.getConnection((err, conn) => {
});

/** query */
poolCluster.getConnection('cluster1', (err, conn) => {
poolCluster.getConnection('cluster1', (_err, conn) => {
/** Overload: query(sql, () => {}}) */
conn.query(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down
4 changes: 2 additions & 2 deletions test/tsc-build/mysql/createPoolCluster/of/getConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ poolCluster.add('cluster1', uriAccess);
poolCluster.add('cluster2', access);

/** execute */
poolCluster.of('cluster1').getConnection((err, conn) => {
poolCluster.of('cluster1').getConnection((_err, conn) => {
/** Overload: execute(sql, () => {}}) */
conn.execute(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down Expand Up @@ -38,7 +38,7 @@ poolCluster.of('cluster1').getConnection((err, conn) => {
});

/** query */
poolCluster.of('cluster2').getConnection((err, conn) => {
poolCluster.of('cluster2').getConnection((_err, conn) => {
/** Overload: query(sql, () => {}}) */
conn.query(sql, (err, result, fields) => {
console.log(err, result, fields);
Expand Down

0 comments on commit c134683

Please sign in to comment.