Skip to content

Commit e721d70

Browse files
committed
[misc] code style correction
1 parent 87ca82e commit e721d70

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class Connection extends EventEmitter {
194194
}
195195

196196
// no parameters
197-
if ((Array.isArray(cmdParam.values) && cmdParam.values.length === 0)) {
197+
if (Array.isArray(cmdParam.values) && cmdParam.values.length === 0) {
198198
resolve();
199199
}
200200

test/integration/batch.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,9 @@ describe.sequential(
15751575
if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 6, 0)) return skip();
15761576

15771577
const conn = await createConnection({ bulk: true });
1578-
await conn.query('CREATE TEMPORARY TABLE empty_array_value(id int not null primary key auto_increment, id2 int)');
1578+
await conn.query(
1579+
'CREATE TEMPORARY TABLE empty_array_value(id int not null primary key auto_increment, id2 int)'
1580+
);
15791581
await conn.batch('INSERT INTO `empty_array_value`(id2) values (?)', []);
15801582
const res = await conn.query('select * from `empty_array_value`');
15811583
assert.deepEqual(res, []);

0 commit comments

Comments
 (0)